Yes, it is good practice not to repeat the same factory definitions (if they are separated ... which I would contain there MUST be partially overlapped). One way to do this is to create a new directory in your project called "factories", and then add the following parameters in the rspec and oucumber configuration:
/features/support/app.rb Dir[Rails.root.join("factories/**/*.rb")].each {|f| require f} /spec/spec_help.rb Dir[Rails.root.join("factories/**/*.rb")].each {|f| require f}
source share