提交 5b73405f 编写于 作者: Y Yves Senn

Merge pull request #14999 from yahonda/modify_bind_variable_name

Modify assert conditions not to be affected
by each database bind variable naming conventions

Closes #14999.
......@@ -17,8 +17,9 @@ def test_relation_merging
end
def test_relation_to_sql
sql = Post.first.comments.to_sql
assert_no_match(/\?/, sql)
post = Post.first
sql = post.comments.to_sql
assert_match(/.?post_id.? = #{post.id}\Z/i, sql)
end
def test_relation_merging_with_arel_equalities_keeps_last_equality
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册