I know that you can override the default strategy for creating a Factory object as follows:
Factory.define :person, :default_strategy => :build do
but I am wondering if I can add the parameter to the factory_girl configuration file or maybe to the /environments/test.rb file /environments/test.rb that
Factory.define :person do
creates a default Person object and does not create it by default.
source share