diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-10-27 00:41:27 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-12-13 01:06:03 +0000 |
commit | 5541d640cf455ae95544dba411ba71367cbc97ff (patch) | |
tree | 77106a29c3cb1f5714f4f5e6a0dc20e1baf3780a /railties/lib/rails/generators/test_unit/controller/templates | |
parent | cd355a8eeb676d172a1b9fa9855cb2531bd1b4e5 (diff) | |
download | rails-5541d640cf455ae95544dba411ba71367cbc97ff.tar.gz rails-5541d640cf455ae95544dba411ba71367cbc97ff.tar.bz2 rails-5541d640cf455ae95544dba411ba71367cbc97ff.zip |
Controller generators should be creating IntegrationTest stubs instead of ControllerTest
Diffstat (limited to 'railties/lib/rails/generators/test_unit/controller/templates')
-rw-r--r-- | railties/lib/rails/generators/test_unit/controller/templates/functional_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/test_unit/controller/templates/functional_test.rb b/railties/lib/rails/generators/test_unit/controller/templates/functional_test.rb index 5a8a3ca5e0..62c7e2f011 100644 --- a/railties/lib/rails/generators/test_unit/controller/templates/functional_test.rb +++ b/railties/lib/rails/generators/test_unit/controller/templates/functional_test.rb @@ -1,7 +1,7 @@ require 'test_helper' <% module_namespacing do -%> -class <%= class_name %>ControllerTest < ActionController::TestCase +class <%= class_name %>ControllerTest < ActionDispatch::IntegrationTest <% if mountable_engine? -%> setup do @routes = Engine.routes @@ -15,7 +15,7 @@ class <%= class_name %>ControllerTest < ActionController::TestCase <% else -%> <% actions.each do |action| -%> test "should get <%= action %>" do - get :<%= action %> + get url_for(action: :<%= action %>) assert_response :success end |