Permalink
Browse files

Test for when controller with skip-assets

  • Loading branch information...
arunagw committed Nov 23, 2013
1 parent 69883f3 commit bd00feec4f8d64635e9c23bb073e4ad7c4704202
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/generators/controller_generator_test.rb
@@ -43,6 +43,12 @@ def test_invokes_assets
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"

0 comments on commit bd00fee

Please sign in to comment.