aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/integration.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-02-13 10:32:52 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-02-13 10:32:52 +0100
commit7ce317430601f9e041d8f715feae4297da963618 (patch)
tree6abe1c8811d559e5e7611977458994c51e691cb3 /actionpack/lib/action_dispatch/testing/integration.rb
parent57a1d2bf9d71600ec872de125854e550b376caa5 (diff)
parentaca4c82d95721df874ae8ed5da2a476fdec42f11 (diff)
downloadrails-7ce317430601f9e041d8f715feae4297da963618.tar.gz
rails-7ce317430601f9e041d8f715feae4297da963618.tar.bz2
rails-7ce317430601f9e041d8f715feae4297da963618.zip
Merge pull request #18923 from tgxworld/fix_deprecation_warning_message
Improve deprecation warning message
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/integration.rb')
-rw-r--r--actionpack/lib/action_dispatch/testing/integration.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb
index 590fed955a..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,9 +315,7 @@ module ActionDispatch
params: { id: 1 },
headers: { 'X-Extra-Header' => '123' },
env: { 'action_dispatch.custom' => 'custom' }
-
- xhr :post, '/profile',
- params: { id: 1 }
+ xhr: true
MSG
end