diff options
author | Kir Shatrov <shatrov@me.com> | 2016-08-30 11:51:19 -0400 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2016-08-31 10:17:55 -0400 |
commit | f1e86a051f5f170c3ab8153f7875269c3395d34b (patch) | |
tree | e2aef5dfcd8bba480c4a10df9e8d8d813b851582 /actionpack/test/controller | |
parent | 3132fa6b7d9585e04eb44b25b55d298391b040b5 (diff) | |
download | rails-f1e86a051f5f170c3ab8153f7875269c3395d34b.tar.gz rails-f1e86a051f5f170c3ab8153f7875269c3395d34b.tar.bz2 rails-f1e86a051f5f170c3ab8153f7875269c3395d34b.zip |
Do not allow to_param on AC::Parameters
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/required_params_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/required_params_test.rb b/actionpack/test/controller/required_params_test.rb index 315d1ff3e8..9fa2b6dbb0 100644 --- a/actionpack/test/controller/required_params_test.rb +++ b/actionpack/test/controller/required_params_test.rb @@ -77,4 +77,10 @@ class ParametersRequireTest < ActiveSupport::TestCase ActionController::Parameters.new(foo: "bar").merge!(bar: "foo") end end + + test "to_query is not supported" do + assert_deprecated do + ActionController::Parameters.new(foo: "bar").to_param + end + end end |