aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorBenjamin Quorning <benjamin@quorning.net>2016-02-17 14:48:35 +0100
committerBenjamin Quorning <benjamin@quorning.net>2016-02-19 09:18:08 +0100
commit30440363c077dc081f7f14a2a40ca72b0fbaae67 (patch)
tree2cfd83cd5b328ca11b95143c3aeb9934fa1f8467 /actionpack/test
parent08fd9f4f1174ce20f8ecbcda1c2509bb598ce200 (diff)
downloadrails-30440363c077dc081f7f14a2a40ca72b0fbaae67.tar.gz
rails-30440363c077dc081f7f14a2a40ca72b0fbaae67.tar.bz2
rails-30440363c077dc081f7f14a2a40ca72b0fbaae67.zip
Deprecate AC::Parameters#== with a Hash
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/parameters/accessors_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/test/controller/parameters/accessors_test.rb b/actionpack/test/controller/parameters/accessors_test.rb
index ef8eb5f33e..4ef5bed30d 100644
--- a/actionpack/test/controller/parameters/accessors_test.rb
+++ b/actionpack/test/controller/parameters/accessors_test.rb
@@ -129,10 +129,12 @@ class ParametersAccessorsTest < ActiveSupport::TestCase
assert_not @params[:person].values_at(:name).first.permitted?
end
- test "equality with another hash works" do
+ test "equality with a hash is deprecated" do
hash1 = { foo: :bar }
params1 = ActionController::Parameters.new(hash1)
- assert(params1 == hash1)
+ assert_deprecated("will be removed in Rails 5.1") do
+ assert(params1 == hash1)
+ end
end
test "is equal to Parameters instance with same params" do