diff options
-rw-r--r-- | actionpack/test/controller/parameters/accessors_test.rb | 6 |
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", '\ |