From e0d4e5f345306358d6aa7942e25bb805ff1d5bfa Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sat, 30 Jan 2010 14:22:21 -0600 Subject: Revert "Drop JS scripts from core" This reverts commit a06c47a52b90a5d812e64309488ad5926dc583ca. --- railties/test/generators/app_generator_test.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'railties/test') diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 02ca8a3375..f821f5caf3 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -86,13 +86,15 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_file "config/boot.rb", /# require "active_record\/railtie"/ end - def test_test_unit_is_added_by_default + def test_prototype_and_test_unit_are_added_by_default run_generator + assert_file "public/javascripts/prototype.js" assert_file "test" end - def test_test_unit_is_skipped_if_required - run_generator [destination_root, "--skip-testunit"] + def test_prototype_and_test_unit_are_skipped_if_required + run_generator [destination_root, "--skip-prototype", "--skip-testunit"] + assert_no_file "public/javascripts/prototype.js" assert_no_file "test" end -- cgit v1.2.3