提交 9d2ea7f6 编写于 作者: B Benjamin Quorning

Tests for AC::Parameters#==

上级 af572a69
......@@ -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", '\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册