mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Address test_merging_where_relations failure by adding order("posts.id")
This commit is contained in:
parent
ea76386493
commit
8e3474bede
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class MergingDifferentRelationsTest < ActiveRecord::TestCase
|
||||||
|
|
||||||
test "merging where relations" do
|
test "merging where relations" do
|
||||||
hello_by_bob = Post.where(body: "hello").joins(:author).
|
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,
|
assert_equal [posts(:misc_by_bob).id,
|
||||||
posts(:other_by_bob).id], hello_by_bob
|
posts(:other_by_bob).id], hello_by_bob
|
||||||
|
|
Loading…
Reference in a new issue