mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #12929 from yahonda/test_merging_where_relations_add_order
Address test_merging_where_relations failure by adding order
This commit is contained in:
commit
f60d00c56e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue