lib/ninoxe/engine.rb in ninoxe-1.1.5 vs lib/ninoxe/engine.rb in ninoxe-1.2.0

- old
+ new

@@ -9,7 +9,11 @@ initializer "ninoxe", :after => :eager_load! do ::Chouette::ActiveRecord.establish_connection Rails.configuration.database_configuration["chouette"] if Rails.configuration.database_configuration["chouette"].present? ::Chouette::ActiveRecord.logger = Rails.logger end + + initializer "ninoxe.factories", :after => "factory_girl.set_factory_paths" do + FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl) + end end end