Follow on to previous post that is awaiting moderation.

2 views
Skip to first unread message

cnk

unread,
Dec 4, 2009, 11:31:11 PM12/4/09
to factory_girl
Looks like grabbing code out of the FactoryGirl initializer does the
trick - but feels pretty hackish. What is the right way to do this.
What I have now is

features/support/env.rb
...generated code from script/generate cucumber....

require 'factory_girl'
Factory.definition_file_paths = [ File.join(RAILS_ROOT, 'test',
'factories') ]
Factory.find_definitions
Reply all
Reply to author
Forward
0 new messages