From 9d2ea7f623711d13cfcf536de61012f4879c344b Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Wed, 17 Feb 2016 14:44:07 +0100 Subject: Tests for AC::Parameters#== --- actionpack/test/controller/parameters/accessors_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test/controller') 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( '{"age"=>"32", '\ -- cgit v1.2.3