diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-02-01 16:56:30 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-02-01 17:03:23 -0200 |
commit | e778e22812893c5ac09634ace83a4af168d66a3b (patch) | |
tree | 7debae34d185fa9beb3780af391402f993853771 /railties | |
parent | a73662f3d8d9ce1a0c54bc0254024c5ecc7cb1a2 (diff) | |
download | rails-e778e22812893c5ac09634ace83a4af168d66a3b.tar.gz rails-e778e22812893c5ac09634ace83a4af168d66a3b.tar.bz2 rails-e778e22812893c5ac09634ace83a4af168d66a3b.zip |
Remove the dependent_restrict_raises configuration if activerecord is
not preset
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/paths_test.rb | 1 | ||||
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/application/paths_test.rb b/railties/test/application/paths_test.rb index 55f5a349de..4029984ce9 100644 --- a/railties/test/application/paths_test.rb +++ b/railties/test/application/paths_test.rb @@ -15,7 +15,6 @@ module ApplicationTests app.config.session_store nil end RUBY - use_frameworks [:action_controller, :action_view, :action_mailer, :active_record] require "#{app_path}/config/environment" @paths = Rails.application.config.paths end diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 72588af631..4fb5e6a4eb 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -247,7 +247,7 @@ module TestHelpers :activemodel, :activerecord, :activeresource] - arr - remove_from_config "config.active_record.identity_map = true" if to_remove.include? :activerecord + remove_from_config "config.active_record.dependent_restrict_raises = false" if to_remove.include? :activerecord $:.reject! {|path| path =~ %r'/(#{to_remove.join('|')})/' } end |