remove some artifacts of dependent_restrict_raises that I missed
This commit is contained in:
parent
6bb8afb45e
commit
09d2671cb6
@ -213,7 +213,6 @@ def test_generator_if_skip_active_record_is_given
|
||||
assert_no_file "config/database.yml"
|
||||
assert_file "config/application.rb", /#\s+require\s+["']active_record\/railtie["']/
|
||||
assert_file "config/application.rb", /#\s+config\.active_record\.whitelist_attributes = true/
|
||||
assert_file "config/application.rb", /#\s+config\.active_record\.dependent_restrict_raises = false/
|
||||
assert_file "test/test_helper.rb" do |helper_content|
|
||||
assert_no_match(/fixtures :all/, helper_content)
|
||||
end
|
||||
|
@ -253,7 +253,6 @@ def use_frameworks(arr)
|
||||
:activerecord] - arr
|
||||
if to_remove.include? :activerecord
|
||||
remove_from_config "config.active_record.whitelist_attributes = true"
|
||||
remove_from_config "config.active_record.dependent_restrict_raises = false"
|
||||
end
|
||||
$:.reject! {|path| path =~ %r'/(#{to_remove.join('|')})/' }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user