diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-11-23 17:17:18 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-11-23 17:17:18 +0100 |
commit | bd00feec4f8d64635e9c23bb073e4ad7c4704202 (patch) | |
tree | 1a2c960f81ccaa2cb0264c5f0f634b32565d4744 /railties/test | |
parent | 69883f3ebfef45990e2c2478beccdfe9cf35e090 (diff) | |
download | rails-bd00feec4f8d64635e9c23bb073e4ad7c4704202.tar.gz rails-bd00feec4f8d64635e9c23bb073e4ad7c4704202.tar.bz2 rails-bd00feec4f8d64635e9c23bb073e4ad7c4704202.zip |
Test for when controller with skip-assets
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/controller_generator_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/controller_generator_test.rb b/railties/test/generators/controller_generator_test.rb index 9c664a903a..2268f04839 100644 --- a/railties/test/generators/controller_generator_test.rb +++ b/railties/test/generators/controller_generator_test.rb @@ -43,6 +43,12 @@ class ControllerGeneratorTest < Rails::Generators::TestCase assert_file "app/assets/stylesheets/account.css" end + def test_does_not_invoke_assets_if_required + run_generator ["account", "--skip-assets"] + assert_no_file "app/assets/javascripts/account.js" + assert_no_file "app/assets/stylesheets/account.css" + end + def test_invokes_default_test_framework run_generator assert_file "test/controllers/account_controller_test.rb" |