aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-06-13 10:50:53 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-06-13 10:50:53 -0700
commit9abcb131f94786dbe273088ebd0d93444ca298b2 (patch)
tree228c099ddb9189bd947f671d08a0cbf96bbc18c5 /activerecord
parentf379185a893503e26d160a4f326e610f05e3d6cc (diff)
downloadrails-9abcb131f94786dbe273088ebd0d93444ca298b2.tar.gz
rails-9abcb131f94786dbe273088ebd0d93444ca298b2.tar.bz2
rails-9abcb131f94786dbe273088ebd0d93444ca298b2.zip
refute the predicate for better failure messages
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/nested_attributes_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb
index 6fe81e0d96..1625b6234f 100644
--- a/activerecord/test/cases/nested_attributes_test.rb
+++ b/activerecord/test/cases/nested_attributes_test.rb
@@ -809,7 +809,7 @@ module NestedAttributesOnACollectionAssociationTests
assert_no_difference ['Man.count', 'Interest.count'] do
man = Man.create(:name => 'John',
:interests_attributes => [{:topic=>'Cars'}, {:topic=>'Sports'}])
- assert !man.errors[:"interests.man"].empty?
+ assert_not_predicate man.errors[:"interests.man"], :empty?
end
end
ensure