Permalink
Browse files

do not bother with assert_nothing_raised, the test will fail and we g…

…et a better trace without it
  • Loading branch information...
tenderlove committed May 24, 2011
1 parent d387a59 commit 99cfdba1e18fc6f75ced54cb16829a8ab4b8a4b6
Showing with 1 addition and 3 deletions.
  1. +1 −3 activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -499,9 +499,7 @@ def test_deprecated_interpolated_conditions
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

0 comments on commit 99cfdba

Please sign in to comment.