提交 db95c7dc 编写于 作者: A Adrien Coquio

Update ActiveModel::Errors.has_key? test

上级 b97035df
......@@ -51,7 +51,7 @@ def test_dup
def test_has_key?
errors = ActiveModel::Errors.new(self)
errors[:foo] = 'omg'
assert errors.has_key?(:foo), 'errors should have key :foo'
assert_equal true, errors.has_key?(:foo), 'errors should have key :foo'
end
def test_has_no_key
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册