<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,7 +13,8 @@ module Spec
         @steps.add(type, step)
       end
       
-      def find(type, name)
+      def find(type, unstripped_name)
+        name = unstripped_name.strip
         if @steps.find(type, name).nil?
           @steps.add(type,
           Step.new(name) do</diff>
      <filename>lib/spec/story/step_mother.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,6 +42,18 @@ module Spec
         end.should raise_error(Spec::Example::ExamplePendingError, /Unimplemented/)
       end
       
+      it &quot;should create a default step with it's name stripped&quot; do
+        # given
+        step_mother = StepMother.new
+        
+        # when
+        step = step_mother.find(:given, &quot;doesn't exist\n\n&quot;)
+        
+        # then
+        step.should be_an_instance_of(Step)
+        step.name.should == &quot;doesn't exist&quot;
+      end
+      
       it 'should clear itself' do
         # given
         step_mother = StepMother.new</diff>
      <filename>spec/spec/story/step_mother_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7113bc343095637e1f6649d55deed21edccaa077</id>
    </parent>
  </parents>
  <author>
    <name>Ben Mabey</name>
    <email>ben@benmabey.com</email>
  </author>
  <url>http://github.com/jpshackelford/rspec/commit/fad8a558297642e1939950793c8ef20d529a352e</url>
  <id>fad8a558297642e1939950793c8ef20d529a352e</id>
  <committed-date>2008-08-22T06:08:05-07:00</committed-date>
  <authored-date>2008-08-12T16:39:35-07:00</authored-date>
  <message>fixing newline bug when StepMother is creating unimplemented steps</message>
  <tree>ba354bc093ab66f3cac59f6b9370b186ebcbd4ba</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>david@david-chelimskys-macbook-pro.local</email>
  </committer>
</commit>
