aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-01-21 17:34:55 -0500
committerRafael França <rafaelmfranca@gmail.com>2016-01-21 17:34:55 -0500
commit6fcc3c47eb363d0d3753ee284de2fbc68df03194 (patch)
tree96d1e8f623748e6f542b85d5a95af2aecbe4ffc6 /actionpack/test/controller
parent77e1b0eb3a16581924e175a685da1d8cc2319644 (diff)
parent627f736cc0a1a7b32e67303b92b963d4b6d9e68c (diff)
downloadrails-6fcc3c47eb363d0d3753ee284de2fbc68df03194.tar.gz
rails-6fcc3c47eb363d0d3753ee284de2fbc68df03194.tar.bz2
rails-6fcc3c47eb363d0d3753ee284de2fbc68df03194.zip
Merge pull request #23167 from maclover7/fix-21032
Fix `ActionController::Parameters#==` bug
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/parameters/accessors_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/parameters/accessors_test.rb b/actionpack/test/controller/parameters/accessors_test.rb
index a8f4d877a6..bd43ff7697 100644
--- a/actionpack/test/controller/parameters/accessors_test.rb
+++ b/actionpack/test/controller/parameters/accessors_test.rb
@@ -128,4 +128,10 @@ class ParametersAccessorsTest < ActiveSupport::TestCase
assert_not @params.values_at(:person).first.permitted?
assert_not @params[:person].values_at(:name).first.permitted?
end
+
+ test "equality with another hash works" do
+ hash1 = { foo: :bar }
+ params1 = ActionController::Parameters.new(hash1)
+ assert(params1 == hash1)
+ end
end