提交 0df88301 编写于 作者: A Aaron Patterson

do not bother with assert_nothing_raised, the test will fail and we get a better trace without it

上级 e106dbf0
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册