diff options
author | Kir Shatrov <shatrov@me.com> | 2015-01-04 10:35:06 +0100 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2015-01-29 14:44:46 +0200 |
commit | baf14ae513337cb185acf865e93dfc48f3aabf6a (patch) | |
tree | 77235d82964272c8721a62ae046b16279d01f945 /actionpack/test/dispatch/mount_test.rb | |
parent | 069b72aaf04d2caef76f8e71f320716129f2d949 (diff) | |
download | rails-baf14ae513337cb185acf865e93dfc48f3aabf6a.tar.gz rails-baf14ae513337cb185acf865e93dfc48f3aabf6a.tar.bz2 rails-baf14ae513337cb185acf865e93dfc48f3aabf6a.zip |
Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration
Non-kwargs requests are deprecated now.
Guides are updated as well.
`post url, nil, nil, { a: 'b' }` doesn't make sense.
`post url, params: { y: x }, session: { a: 'b' }` would be an explicit way to do the same
Diffstat (limited to 'actionpack/test/dispatch/mount_test.rb')
-rw-r--r-- | actionpack/test/dispatch/mount_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/mount_test.rb b/actionpack/test/dispatch/mount_test.rb index d5a4d8ee11..781e0e0397 100644 --- a/actionpack/test/dispatch/mount_test.rb +++ b/actionpack/test/dispatch/mount_test.rb @@ -64,7 +64,7 @@ class TestRoutingMount < ActionDispatch::IntegrationTest end def test_mounting_works_with_nested_script_name - get "/foo/sprockets/omg", {}, 'SCRIPT_NAME' => '/foo', 'PATH_INFO' => '/sprockets/omg' + get "/foo/sprockets/omg", headers: {'SCRIPT_NAME' => '/foo', 'PATH_INFO' => '/sprockets/omg'} assert_equal "/foo/sprockets -- /omg", response.body end |