diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2015-02-13 15:30:13 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2015-02-13 15:30:13 +0800 |
commit | aca4c82d95721df874ae8ed5da2a476fdec42f11 (patch) | |
tree | 7472cfe32f337be265246bf7c13ca78ca16c2318 | |
parent | dbf38a06f4652c0a2fbdaecca21a18f53633bb6e (diff) | |
download | rails-aca4c82d95721df874ae8ed5da2a476fdec42f11.tar.gz rails-aca4c82d95721df874ae8ed5da2a476fdec42f11.tar.bz2 rails-aca4c82d95721df874ae8ed5da2a476fdec42f11.zip |
Improve deprecation message.
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 0fca136f0a..eefff8b053 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -306,7 +306,8 @@ module ActionDispatch def non_kwarg_request_warning ActiveSupport::Deprecation.warn(<<-MSG.strip_heredoc) ActionDispatch::Integration::TestCase HTTP request methods will accept only - keyword arguments in future Rails versions. + the following keyword arguments in future Rails versions: + #{REQUEST_KWARGS.join(', ')} Examples: @@ -314,6 +315,7 @@ module ActionDispatch params: { id: 1 }, headers: { 'X-Extra-Header' => '123' }, env: { 'action_dispatch.custom' => 'custom' } + xhr: true MSG end |