Commit 2b427637

mo khan <mo@mokhan.ca>
2014-07-01 00:31:57
fix broken spec that needs a valid category.
1 parent 834fd12
Changed files (1)
spec
spec/models/creation_spec.rb
@@ -6,7 +6,8 @@ describe Creation do
   describe "should be able to set attributes" do
     it "should save name" do
       sut.name="HELLO WORLD"
-      sut.save
+      sut.category = create(:category)
+      sut.save!
       Creation.find(sut.id).name.should == "HELLO WORLD"
     end
   end