未验证 提交 1ba72fd6 编写于 作者: E Eileen M. Uchitelle 提交者: GitHub

Merge pull request #31492 from prathamesh-sonpatki/rm-assert-nothing-raised

assert_nothing_raised not required here, we can assert directly for the actual result
......@@ -287,10 +287,8 @@ def test_exists_with_distinct_association_includes_limit_and_order
end
def test_exists_should_reference_correct_aliases_while_joining_tables_of_has_many_through_association
assert_nothing_raised do
developer = developers(:david)
developer.ratings.includes(comment: :post).where(posts: { id: 1 }).exists?
end
developer = developers(:david)
assert_not_predicate developer.ratings.includes(comment: :post).where(posts: { id: 1 }), :exists?
end
def test_exists_with_empty_table_and_no_args_given
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册