aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/errors_test.rb
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2011-07-27 18:07:47 +0200
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:20 -0700
commit45f9c2b3619d96867f9c6af7c16d2f5d53f1a17e (patch)
treec8e8ebfa961e75f3801ad0c566e057f52cff23c5 /activemodel/test/cases/errors_test.rb
parent035d31bd93d68724912d656e03cba7c6b503d25a (diff)
downloadrails-45f9c2b3619d96867f9c6af7c16d2f5d53f1a17e.tar.gz
rails-45f9c2b3619d96867f9c6af7c16d2f5d53f1a17e.tar.bz2
rails-45f9c2b3619d96867f9c6af7c16d2f5d53f1a17e.zip
Handle the empty array correctly.
Diffstat (limited to 'activemodel/test/cases/errors_test.rb')
-rw-r--r--activemodel/test/cases/errors_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb
index a24cac40ad..85ca8ca835 100644
--- a/activemodel/test/cases/errors_test.rb
+++ b/activemodel/test/cases/errors_test.rb
@@ -38,6 +38,7 @@ class ErrorsTest < ActiveModel::TestCase
person.errors[:foo]
assert person.errors.empty?
assert person.errors.blank?
+ assert !person.errors.include?(:foo)
end
test "method validate! should work" do