FactoryGirl adapter
Reported by Yi Wen | December 27th, 2010 @ 09:52 PM
The code in adapter.rb:116
Factory(@name, attrs)
When I have a factory that shared by unit tests and cucumber tests. I want to specify the factory default_strategy to :build, meaning, build, not create into the db. This breaks pickle because Factory(@name, attrs) will thus buil, not create the object.
Is it possible to change it to:
Factory.create(@name, attrs)
Thank you!
No comments found
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Assign tickets to <b>Ian White</b>, so I get notified