diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-24 11:05:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-24 11:05:36 -0700 |
commit | 0df8830160123542cfcc00185ff7d70a05495894 (patch) | |
tree | 8bca5dc99cb5360a1228b67f193b5bfb62d49381 /activerecord/test/cases/associations | |
parent | e106dbf0394b75b41139351b74072d5650d1ef74 (diff) | |
download | rails-0df8830160123542cfcc00185ff7d70a05495894.tar.gz rails-0df8830160123542cfcc00185ff7d70a05495894.tar.bz2 rails-0df8830160123542cfcc00185ff7d70a05495894.zip |
do not bother with assert_nothing_raised, the test will fail and we get a better trace without it
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 29f574405e..533a492533 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -770,9 +770,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase def test_create_should_not_raise_exception_when_join_record_has_errors repair_validations(Categorization) do Categorization.validate { |r| r.errors[:base] << 'Invalid Categorization' } - assert_nothing_raised do - Category.create(:name => 'Fishing', :authors => [Author.first]) - end + Category.create(:name => 'Fishing', :authors => [Author.first]) end end end |