diff options
author | Vipul A M <vipulnsward@gmail.com> | 2015-01-31 21:54:33 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2015-01-31 21:54:33 +0530 |
commit | dd6b0c2a3d2fdb1eaa7b931af2b87ae42ea27c63 (patch) | |
tree | a8d74f2ddd1b2fd0893e737096ad8cd3cb94ff2f /actionview/test/actionpack | |
parent | 33030ea7cbfa026b0f9f95a2c5d2dd363a7fe6aa (diff) | |
download | rails-dd6b0c2a3d2fdb1eaa7b931af2b87ae42ea27c63.tar.gz rails-dd6b0c2a3d2fdb1eaa7b931af2b87ae42ea27c63.tar.bz2 rails-dd6b0c2a3d2fdb1eaa7b931af2b87ae42ea27c63.zip |
Fixed test for deprecation warning in actionview, renaming from https://github.com/rails/rails/commit/baf14ae513337cb185acf865e93dfc48f3aabf6a
Diffstat (limited to 'actionview/test/actionpack')
-rw-r--r-- | actionview/test/actionpack/controller/render_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb index 94f519e330..0a8842b527 100644 --- a/actionview/test/actionpack/controller/render_test.rb +++ b/actionview/test/actionpack/controller/render_test.rb @@ -957,12 +957,12 @@ class RenderTest < ActionController::TestCase end def test_accessing_params_in_template - get :accessing_params_in_template, :name => "David" + get :accessing_params_in_template, params: { name: "David" } assert_equal "Hello: David", @response.body end def test_accessing_local_assigns_in_inline_template - get :accessing_local_assigns_in_inline_template, :local_name => "Local David" + get :accessing_local_assigns_in_inline_template, params: { local_name: "Local David" } assert_equal "Goodbye, Local David", @response.body assert_equal "text/html", @response.content_type end @@ -1046,7 +1046,7 @@ class RenderTest < ActionController::TestCase end def test_accessing_params_in_template_with_layout - get :accessing_params_in_template_with_layout, :name => "David" + get :accessing_params_in_template_with_layout, params: { name: "David" } assert_equal "<html>Hello: David</html>", @response.body end |