Skip to content
Browse files

Merge pull request #2390 from arunagw/test_for_environment_file

Test added to check development.rb, test.rb and production.rb content
  • Loading branch information...
1 parent 125b1b0 commit 8c0d89ee71b714bd5d2199a96ffdc70ead06e934 @spastorino spastorino committed Aug 24, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 railties/test/generators/app_generator_test.rb
View
9 railties/test/generators/app_generator_test.rb
@@ -299,6 +299,15 @@ def test_force_old_style_hash
end
end
+ def test_generated_environments_file_for_sanitizer
+ run_generator [destination_root, "--skip-active-record"]
+ ["config/environments/development.rb", "config/environments/test.rb"].each do |env_file|
+ assert_file env_file do |file|
+ assert_no_match(/config.active_record.mass_assignment_sanitizer = :strict/, file)
+ end
+ end
+ end
+
protected
def action(*args, &block)

0 comments on commit 8c0d89e

Please sign in to comment.
Something went wrong with that request. Please try again.