<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
-Factory.define :project do |f|
-  f.sequence(:name) { |n| &quot;Meatloaf#{n}&quot; }
+Factory.define(:project) do |f|
+  f.sequence(:name) { |n| &quot;Meatloaf#{n}&quot; } #do block adds rand
 end
 
 Factory.define :scenario do |f|</diff>
      <filename>spec/factories.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@ describe &quot;Project Factory&quot; do
   describe &quot;Tank City&quot; do
     before do
       @project = Factory.create(:project, :name =&gt; &quot;Tank City&quot;)
+      @project.name.should == &quot;Tank City&quot;
     end
 
     it &quot;should not be nil&quot; do
@@ -11,7 +12,14 @@ describe &quot;Project Factory&quot; do
     end
 
     it &quot;should be valid&quot; do
+      @project = Factory.build(:project)
       @project.should be_valid
     end
+
+    it &quot;should not be to save nil&quot; do
+      @project.update_attributes(:name =&gt; nil)
+      @project.should_not be_valid
+      @project.should_not be_nil
+    end
   end
 end</diff>
      <filename>spec/factory_specs/project_factory_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>14b28daa461598368b333a9fa16218fb4b83f468</id>
    </parent>
  </parents>
  <author>
    <name>Rich Downie</name>
    <email>rich@richdownie.com</email>
  </author>
  <url>http://github.com/richdownie/richdownie1/commit/92321c720d1f6fc5cca98d1aa6a478a6df3c56c0</url>
  <id>92321c720d1f6fc5cca98d1aa6a478a6df3c56c0</id>
  <committed-date>2009-10-07T14:04:47-07:00</committed-date>
  <authored-date>2009-10-07T14:04:47-07:00</authored-date>
  <message>factory girl</message>
  <tree>890ce0c68c38774ea36c7d4e10d46c11a89c82fc</tree>
  <committer>
    <name>Rich Downie</name>
    <email>rich@richdownie.com</email>
  </committer>
</commit>
