aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-07-08 14:14:59 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-07-08 14:15:53 -0700
commit460079a7717281bb5a20eab0239215f8e0e71de6 (patch)
tree5a7362dcb7474c39cbedb3d74e04aa3e9e2f5e50 /actionpack/lib/action_dispatch/testing/assertions
parent0f62e3ecf4124ce9f38ea57479bd7252a76ebb15 (diff)
downloadrails-460079a7717281bb5a20eab0239215f8e0e71de6.tar.gz
rails-460079a7717281bb5a20eab0239215f8e0e71de6.tar.bz2
rails-460079a7717281bb5a20eab0239215f8e0e71de6.zip
let the superclass build the request and response
We should leverage the request / response objects that the superclass has already allocated for us.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/routing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
index c94eea9134..4ea0cd68ac 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -183,7 +183,7 @@ module ActionDispatch
end
# Assume given controller
- request = ActionController::TestRequest.new
+ request = build_request
if path =~ %r{://}
fail_on(URI::InvalidURIError, msg) do