aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorBenjamin Quorning <benjamin@quorning.net>2016-02-17 14:44:07 +0100
committerBenjamin Quorning <benjamin@quorning.net>2016-02-19 09:18:08 +0100
commit9d2ea7f623711d13cfcf536de61012f4879c344b (patch)
tree4a3de989e76eb6359e768420af10eee05f9b16db /actionpack/test
parentaf572a69a75ef87f17b8d06bdc8a56f3a59d779a (diff)
downloadrails-9d2ea7f623711d13cfcf536de61012f4879c344b.tar.gz
rails-9d2ea7f623711d13cfcf536de61012f4879c344b.tar.bz2
rails-9d2ea7f623711d13cfcf536de61012f4879c344b.zip
Tests for AC::Parameters#==
Diffstat (limited to 'actionpack/test')
-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 08b3d81bf0..7f46c6439c 100644
--- a/actionpack/test/controller/parameters/accessors_test.rb
+++ b/actionpack/test/controller/parameters/accessors_test.rb
@@ -135,6 +135,12 @@ class ParametersAccessorsTest < ActiveSupport::TestCase
assert(params1 == hash1)
end
+ test "equality with simple types works" do
+ assert(@params != 'Hello')
+ assert(@params != 42)
+ assert(@params != false)
+ end
+
test "inspect shows both class name and parameters" do
assert_equal(
'<ActionController::Parameters {"person"=>{"age"=>"32", '\