1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update ActiveModel::Errors.has_key? test

This commit is contained in:
Adrien Coquio 2014-01-22 21:25:58 +01:00
parent b97035df64
commit db95c7dceb

View file

@ -51,7 +51,7 @@ class ErrorsTest < ActiveModel::TestCase
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