lib/mail_manager/engine.rb in mail_manager-0.1.4 vs lib/mail_manager/engine.rb in mail_manager-3.0.0

- old
+ new

@@ -7,9 +7,12 @@ if File.exist?(File.join(Rails.root,'config','mail_manager.yml')) require 'mail_manager/config' MailManager.initialize_with_config(MailManager::Config.initialize!) end end + initializer "mail_manager.factories", :after => "factory_girl.set_factory_paths" do + FactoryGirl.definition_file_paths << File.expand_path('../../../spec/test_app/spec/factories', __FILE__) if defined?(FactoryGirl) + end config.generators do |g| g.test_framework :rspec, :fixture => false g.fixture_replacement :factory_girl, :dir => 'spec/factories' end end