1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove the dependent_restrict_raises configuration if activerecord is

not preset
This commit is contained in:
Rafael Mendonça França 2012-02-01 16:56:30 -02:00
parent a73662f3d8
commit e778e22812
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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