diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-31 12:34:34 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-31 12:41:16 -0200 |
commit | 25a69e2ea51e419af8fc72dffdea94edb7e24e55 (patch) | |
tree | 8188916308ffb4f1d9bafe5900e79f854dd66d22 /railties/test | |
parent | 98e1735d1d622ad07a8441df4eb280d7a8e96a05 (diff) | |
download | rails-25a69e2ea51e419af8fc72dffdea94edb7e24e55.tar.gz rails-25a69e2ea51e419af8fc72dffdea94edb7e24e55.tar.bz2 rails-25a69e2ea51e419af8fc72dffdea94edb7e24e55.zip |
Only add ActiveRecord configuration if it is present
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 33a51fe782..e2c98274b1 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -202,6 +202,7 @@ class AppGeneratorTest < Rails::Generators::TestCase 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\.dependent_restrict_raises = false/ assert_file "test/test_helper.rb" do |helper_content| assert_no_match(/fixtures :all/, helper_content) end |