diff options
author | Edouard CHIN <edouard.chin@shopify.com> | 2017-06-23 15:24:49 -0400 |
---|---|---|
committer | Edouard CHIN <edouard.chin@shopify.com> | 2017-06-23 15:24:49 -0400 |
commit | 65933a4a85f8d377ba5254ed8c83a638655037e1 (patch) | |
tree | 89efe7a8ab8f7630ace03c47f0c6b0022dece5c4 /actionpack/lib/action_dispatch/testing | |
parent | 2477e1b5aa66e8308244af17abf56474d4266536 (diff) | |
download | rails-65933a4a85f8d377ba5254ed8c83a638655037e1.tar.gz rails-65933a4a85f8d377ba5254ed8c83a638655037e1.tar.bz2 rails-65933a4a85f8d377ba5254ed8c83a638655037e1.zip |
Removed reference to unexisting methods:
`get/post_via_redirect`, `xhr` and his alias `xml_http_request` were respectively removed in 092033d59f7e2b248f6c6ab6c0b67339c5e9f2df and eb52e5d42fbdc9288925a402dcb3c5664d1125b7
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 2416c58817..4973a8f2f2 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -338,8 +338,7 @@ module ActionDispatch @integration_session = nil end - %w(get post patch put head delete cookies assigns - xml_http_request xhr get_via_redirect post_via_redirect).each do |method| + %w(get post patch put head delete cookies assigns).each do |method| define_method(method) do |*args| # reset the html_document variable, except for cookies/assigns calls unless method == "cookies" || method == "assigns" |