diff options
author | Manoj <manoj.mk27@gmail.com> | 2012-01-28 00:18:59 +0530 |
---|---|---|
committer | Manoj <manoj.mk27@gmail.com> | 2012-01-29 15:28:22 +0530 |
commit | 336ff8a97e9391d4111e923a9b841376110d04c9 (patch) | |
tree | 5590b3f9b97cf896f26bb641a474908fd20d873f /railties/test/generators | |
parent | fd3211ef677efe9531f38db58919a8c90d65892a (diff) | |
download | rails-336ff8a97e9391d4111e923a9b841376110d04c9.tar.gz rails-336ff8a97e9391d4111e923a9b841376110d04c9.tar.bz2 rails-336ff8a97e9391d4111e923a9b841376110d04c9.zip |
has_many/has_one, :dependent => :restrict, deprecation added.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index f3071843e2..33a51fe782 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -349,6 +349,11 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_active_record_dependent_restrict_raises_is_present_application_config + run_generator + assert_file "config/application.rb", /config\.active_record\.dependent_restrict_raises = false/ + end + protected def action(*args, &block) |