Browse files

Remove attributes whitelist tests from AppGenerator tests

  • Loading branch information...
1 parent 8042835 commit 9881dbb8421ba7c2c3d3b606ff3812f229bb0967 @guilleiguaran guilleiguaran committed Jul 22, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 railties/test/generators/app_generator_test.rb
View
6 railties/test/generators/app_generator_test.rb
@@ -212,7 +212,6 @@ def test_generator_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
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 "test/test_helper.rb" do |helper_content|
assert_no_match(/fixtures :all/, helper_content)
end
@@ -352,11 +351,6 @@ def test_generated_environments_file_for_auto_explain
end
end
- def test_active_record_whitelist_attributes_is_present_application_config
- run_generator
- assert_file "config/application.rb", /config\.active_record\.whitelist_attributes = true/
- end
-
def test_pretend_option
output = run_generator [File.join(destination_root, "myapp"), "--pretend"]
assert_no_match(/run bundle install/, output)

0 comments on commit 9881dbb

Please sign in to comment.