<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -436,19 +436,31 @@ if File.exists?(&quot;#{File.dirname(__FILE__)}/../../../../config/environment.rb&quot;)
     end
     
     it &quot;should return an unsaved record if spawning&quot; do
-      Frobnitz.spawn.should be_new_record
+      Thing.spawn.should be_new_record
     end
     
-    it &quot;should fail if trying to generate and save an invalid object&quot; do
-      lambda { Frobnitz.generate!(:title =&gt; 'bob') }.should raise_error(ActiveRecord::RecordInvalid)
+    it &quot;should return a saved record if generating&quot; do
+      Thing.generate.should_not be_new_record
     end
     
-    it &quot;should return a valid object if generate and save succeeds&quot; do
-      Frobnitz.generate!(:title =&gt; '5', :name =&gt; 'blah').should be_valid
+    it 'should return a saved record if generating while raising exceptions' do
+      Thing.generate!.should_not be_new_record
+    end
+    
+    it &quot;should not fail if trying to generate and save an invalid object&quot; do
+      lambda { Frobnitz.generate(:title =&gt; 'bob') }.should_not raise_error(ActiveRecord::RecordInvalid)
     end
     
-    it &quot;should return a saved object if generate and save succeeds&quot; do
-      Frobnitz.generate!(:title =&gt; '5', :name =&gt; 'blah').should_not be_new_record
+    it &quot;should return an invalid object if trying to generate and save an invalid object&quot; do
+      Frobnitz.generate(:title =&gt; 'bob').should_not be_valid
+    end
+    
+    it &quot;should fail if trying to generate and save an invalid object while raising acceptions&quot; do
+      lambda { Frobnitz.generate!(:title =&gt; 'bob') }.should raise_error(ActiveRecord::RecordInvalid)
+    end
+    
+    it &quot;should return a valid object if generate and save succeeds&quot; do
+      Frobnitz.generate(:title =&gt; '5', :name =&gt; 'blah').should be_valid
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/object_daddy_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eaf1e4b984369fb28d852ed00b56a0ff0ae5fed9</id>
    </parent>
  </parents>
  <author>
    <name>Yossef Mendelssohn</name>
    <email>ymendel@pobox.com</email>
  </author>
  <url>http://github.com/flogic/object_daddy/commit/e80c7b309481106b672252f55bd483620f4cf053</url>
  <id>e80c7b309481106b672252f55bd483620f4cf053</id>
  <committed-date>2008-04-16T12:56:12-07:00</committed-date>
  <authored-date>2008-04-16T12:56:12-07:00</authored-date>
  <message>generate/generate! can now be thought of as analogs for create/create!</message>
  <tree>f465296942605d699ac7e03c695c8dcfe11cf1d5</tree>
  <committer>
    <name>Yossef Mendelssohn</name>
    <email>ymendel@pobox.com</email>
  </committer>
</commit>
