Skip to content

Commit

Permalink
do not bother with assert_nothing_raised, the test will fail and we g…
Browse files Browse the repository at this point in the history
…et a better trace without it
  • Loading branch information
tenderlove committed May 24, 2011
1 parent d387a59 commit 99cfdba
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -499,9 +499,7 @@ def test_deprecated_interpolated_conditions
def test_create_should_not_raise_exception_when_join_record_has_errors def test_create_should_not_raise_exception_when_join_record_has_errors
repair_validations(Categorization) do repair_validations(Categorization) do
Categorization.validate { |r| r.errors[:base] << 'Invalid Categorization' } Categorization.validate { |r| r.errors[:base] << 'Invalid Categorization' }
assert_nothing_raised do Category.create(:name => 'Fishing', :authors => [Author.first])
Category.create(:name => 'Fishing', :authors => [Author.first])
end
end end
end end
end end

0 comments on commit 99cfdba

Please sign in to comment.