diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-01-17 02:04:38 +0330 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-17 14:55:11 +0100 |
commit | e3898bda9cb0e6d7e63cd8f6d4ecec96209bfd4d (patch) | |
tree | 7d67fcd61efa04cc8faf56c71b891b90d0bea9d9 /railties/test/generators | |
parent | cf109342a710e64fbaabc97c90e4af84f7c20a32 (diff) | |
download | rails-e3898bda9cb0e6d7e63cd8f6d4ecec96209bfd4d.tar.gz rails-e3898bda9cb0e6d7e63cd8f6d4ecec96209bfd4d.tar.bz2 rails-e3898bda9cb0e6d7e63cd8f6d4ecec96209bfd4d.zip |
Take --skip-activerecord into account boot.rb requires. [#3711 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 62ea07f14e..5fab233c8d 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -80,11 +80,10 @@ class AppGeneratorTest < GeneratorsTestCase assert_no_file "config/database.yml" end - # TODO: Bring this back using requires - # def test_activerecord_is_removed_from_frameworks_if_skip_activerecord_is_given - # run_generator ["--skip-activerecord"] - # assert_file "config/application.rb", /config\.frameworks \-= \[ :active_record \]/ - # end + def test_activerecord_is_removed_from_frameworks_if_skip_activerecord_is_given + run_generator [destination_root, "--skip-activerecord"] + assert_file "config/boot.rb", /# require "active_record\/railtie"/ + end def test_prototype_and_test_unit_are_added_by_default run_generator |