From 0df8830160123542cfcc00185ff7d70a05495894 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 24 May 2011 11:05:36 -0700 Subject: [PATCH] do not bother with assert_nothing_raised, the test will fail and we get a better trace without it --- .../cases/associations/has_many_through_associations_test.rb | 4 +--- 1 file changed, 1 insertion(+), 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 @@ def test_primary_key_option_on_source 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 -- GitLab