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 29f574405e6ac75ebe093a9b2f6f675ef32f05b1..533a49253319c4ebcaf09b315794b7b402739c07 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