diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-13 10:50:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-13 10:50:53 -0700 |
commit | 9abcb131f94786dbe273088ebd0d93444ca298b2 (patch) | |
tree | 228c099ddb9189bd947f671d08a0cbf96bbc18c5 /activerecord | |
parent | f379185a893503e26d160a4f326e610f05e3d6cc (diff) | |
download | rails-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.rb | 2 |
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 |