Merge branch 'feature/rails3' of https://github.com/finnlabs/openproject_backlogs into feature/rails3_rspec

pull/6827/head
Christian Rijke 12 years ago
commit 6db4f1a301
  1. 5
      lib/open_project/backlogs/engine.rb

@ -37,6 +37,11 @@ module OpenProject::Backlogs
app.config.plugins_to_test_paths << self.root
end
# adds our factories to factory girl's load path
initializer "backlogs.register_factories", :after => "factory_girl.set_factory_paths" do |app|
FactoryGirl.definition_file_paths << File.expand_path(self.root.to_s + '/spec/factories') if defined?(FactoryGirl)
end
config.to_prepare do
# TODO: avoid this dirty hack necessary to prevent settings method getting lost after reloading

Loading…
Cancel
Save