apneadiving
unread,Jan 27, 2012, 12:01:21 PM1/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to factory_girl
Hi,
I love your gem and use it daily. Today I aced a weird problem, the
following tests both pass:
it "test5bis", :focus do
user = Factory :author
doc = Factory.build(:document, :project =>
project, :original_content => "Lorem Ipsum", :status => "incomplete")
doc.persisted?.should be false
end
it "test5bisCrazy", :focus do
user = Factory :author
doc = Factory.build(:document, :original_content => "Lorem
Ipsum", :project => project, :status => "incomplete")
doc.persisted?.should be true
end
Why does the order of parameters matters?
I use FactoryGirl 2.5.0 and Mongoid.
Thanks,
Ben