aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAdrien Coquio <adrien.coquio@gmail.com>2014-01-22 21:25:58 +0100
committerAdrien Coquio <adrien.coquio@gmail.com>2014-01-22 21:26:53 +0100
commitdb95c7dcebcd240ba46cc5df4eb2b8f240f497bb (patch)
tree4fdda0b1bb136efc72acb934c4b31226e9d8d053 /activemodel
parentb97035df64f5b2f912425c4a7fcb6e6bb3ddab8d (diff)
downloadrails-db95c7dcebcd240ba46cc5df4eb2b8f240f497bb.tar.gz
rails-db95c7dcebcd240ba46cc5df4eb2b8f240f497bb.tar.bz2
rails-db95c7dcebcd240ba46cc5df4eb2b8f240f497bb.zip
Update ActiveModel::Errors.has_key? test
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/errors_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb
index 481f274936..def28578f8 100644
--- a/activemodel/test/cases/errors_test.rb
+++ b/activemodel/test/cases/errors_test.rb
@@ -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