Skip to content
Browse files

Merge pull request #13016 from arunagw/test-for-skip-assets-controller

Test for when controller with skip-assets
  • Loading branch information...
2 parents 69883f3 + bd00fee commit a0f1e6a27ae1a9593c107296d132b4c5605a7175 @guilleiguaran guilleiguaran committed Nov 23, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/generators/controller_generator_test.rb
View
6 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 a0f1e6a

Please sign in to comment.
Something went wrong with that request. Please try again.