diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-23 18:45:09 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-10 00:17:08 -0300 |
commit | 31639eab59e9029328251eb1c4d6ddb5bd1db88d (patch) | |
tree | 34753979f148507c6fccb4f5d34e349875b84c48 /actionpack/test/controller/test_case_test.rb | |
parent | 7093ceb480ad6a0a91b511832dad4c6a86981b93 (diff) | |
download | rails-31639eab59e9029328251eb1c4d6ddb5bd1db88d.tar.gz rails-31639eab59e9029328251eb1c4d6ddb5bd1db88d.tar.bz2 rails-31639eab59e9029328251eb1c4d6ddb5bd1db88d.zip |
Remove deprecated `xml_http_request` and `xhr` methods
Diffstat (limited to 'actionpack/test/controller/test_case_test.rb')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index d929885aea..b07e26fb57 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -742,12 +742,6 @@ XML assert_nil @request.env["HTTP_ACCEPT"] end - def test_deprecated_xhr_with_params - assert_deprecated { xhr :get, :test_params, params: { id: 1 } } - - assert_equal({ "id"=>"1", "controller"=>"test_case_test/test", "action"=>"test_params" }, ::JSON.parse(@response.body)) - end - def test_xhr_with_params get :test_params, params: { id: 1 }, xhr: true @@ -763,15 +757,6 @@ XML assert_equal "it works", session[:symbol], "Test session hash should allow indifferent access" end - def test_deprecated_xhr_with_session - assert_deprecated { xhr :get, :set_session } - - assert_equal "A wonder", session["string"], "A value stored in the session should be available by string key" - assert_equal "A wonder", session[:string], "Test session hash should allow indifferent access" - assert_equal "it works", session["symbol"], "Test session hash should allow indifferent access" - assert_equal "it works", session[:symbol], "Test session hash should allow indifferent access" - end - def test_deprecated_params_reset_between_post_requests assert_deprecated { post :no_op, foo: "bar" } assert_equal "bar", @request.params[:foo] |