diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 15:17:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 15:17:50 -0700 |
commit | 3cae6bc5fc8765b5a06fd3d123528159d1f850b7 (patch) | |
tree | 6471b75ec9b65d3325f626bd8836eecd56700835 /actionpack/lib/action_dispatch/testing | |
parent | 4b1a0adf5449bfee6e4d350b36a62d9bacdf8654 (diff) | |
download | rails-3cae6bc5fc8765b5a06fd3d123528159d1f850b7.tar.gz rails-3cae6bc5fc8765b5a06fd3d123528159d1f850b7.tar.bz2 rails-3cae6bc5fc8765b5a06fd3d123528159d1f850b7.zip |
pass the starting env and session to build_request
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 2 |
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 4ea0cd68ac..48765fe83c 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 = build_request + request = build_request({}, ActionController::TestRequest.new_session) if path =~ %r{://} fail_on(URI::InvalidURIError, msg) do |