aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2011-07-27 18:07:47 +0200
committerthedarkone <thedarkone2@gmail.com>2011-07-27 18:07:47 +0200
commitefe4cbe5f273dc5eb16dda9a9363a8dd7c6b3bad (patch)
tree4eec09f135119b44af1b2f239f594947df6c9580 /activemodel/test/cases
parent02691d3516e68b2de5545ec7a495024a377f89fc (diff)
downloadrails-efe4cbe5f273dc5eb16dda9a9363a8dd7c6b3bad.tar.gz
rails-efe4cbe5f273dc5eb16dda9a9363a8dd7c6b3bad.tar.bz2
rails-efe4cbe5f273dc5eb16dda9a9363a8dd7c6b3bad.zip
Handle the empty array correctly.
Diffstat (limited to 'activemodel/test/cases')
-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