提交 f60d00c5 编写于 作者: C Carlos Antonio da Silva

Merge pull request #12929 from yahonda/test_merging_where_relations_add_order

Address test_merging_where_relations failure by adding order
......@@ -135,7 +135,7 @@ class MergingDifferentRelationsTest < ActiveRecord::TestCase
test "merging where relations" do
hello_by_bob = Post.where(body: "hello").joins(:author).
merge(Author.where(name: "Bob")).pluck("posts.id")
merge(Author.where(name: "Bob")).order("posts.id").pluck("posts.id")
assert_equal [posts(:misc_by_bob).id,
posts(:other_by_bob).id], hello_by_bob
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册