diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-24 07:22:43 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-24 07:22:43 -0700 |
commit | 52207ecc81816140c05d216164aa745cf652f3b3 (patch) | |
tree | 00237e162fec6ea8d1507d83c06ded650f73e21b /railties/test | |
parent | f162f84aa59f2978192877565b2ca4ce6d4d0997 (diff) | |
parent | 3c7b29da1b1fff83fb72a19426193332eaf63577 (diff) | |
download | rails-52207ecc81816140c05d216164aa745cf652f3b3.tar.gz rails-52207ecc81816140c05d216164aa745cf652f3b3.tar.bz2 rails-52207ecc81816140c05d216164aa745cf652f3b3.zip |
Merge pull request #2390 from arunagw/test_for_environment_file
Test added to check development.rb, test.rb and production.rb content
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 2415195a17..1b48c80042 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -314,6 +314,15 @@ class AppGeneratorTest < Rails::Generators::TestCase 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) |