diff options
author | Kerri Miller <kerrizor@github.com> | 2016-08-09 10:35:59 -0700 |
---|---|---|
committer | Kerri Miller <kerrizor@github.com> | 2016-08-09 15:43:01 -0700 |
commit | 496d744fa31665de810b404de968ba86ed87c319 (patch) | |
tree | 5845602181062927cd72709facbb7d7eb92f6b42 /actionpack/lib/action_dispatch/testing/assertions | |
parent | 46f511685c91486295a418547bb08c2aa5e49cfc (diff) | |
download | rails-496d744fa31665de810b404de968ba86ed87c319.tar.gz rails-496d744fa31665de810b404de968ba86ed87c319.tar.bz2 rails-496d744fa31665de810b404de968ba86ed87c319.zip |
Allow specifying encoding of parameters by action
At GitHub we need to handle parameter encodings that are not UTF-8. This
patch allows us to specify encodings per parameter per action.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-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 cba67b2839..2ea4a6c130 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -184,7 +184,7 @@ module ActionDispatch end # Assume given controller - request = ActionController::TestRequest.create + request = ActionController::TestRequest.create @controller.class if path =~ %r{://} fail_on(URI::InvalidURIError, msg) do |