diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-04-10 12:33:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 12:33:24 +0900 |
commit | 36ce219ca08f7768a402f846d202f3c5b370718e (patch) | |
tree | 90ba11c144b74592a9eb58d7129ba54023bec422 /actionpack/test/controller | |
parent | c14deceb9f36f82cd5ca3db214d85e1642eb0bfd (diff) | |
parent | 125b71db2204190cec0c183286479ef05e35c459 (diff) | |
download | rails-36ce219ca08f7768a402f846d202f3c5b370718e.tar.gz rails-36ce219ca08f7768a402f846d202f3c5b370718e.tar.bz2 rails-36ce219ca08f7768a402f846d202f3c5b370718e.zip |
Merge pull request #32515 from bogdanvlviv/add-test_request_format_kwarg_doesnt_mutate_params
Add `TestCaseTest#test_request_format_kwarg_doesnt_mutate_params` to master
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index 7d4850294d..d1122abba6 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -740,6 +740,14 @@ XML assert_equal "application/json", @response.body end + def test_request_format_kwarg_doesnt_mutate_params + params = { foo: "bar" }.freeze + + assert_nothing_raised do + get :test_format, format: "json", params: params + end + end + def test_should_have_knowledge_of_client_side_cookie_state_even_if_they_are_not_set cookies["foo"] = "bar" get :no_op |