1
0
Fork 0
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:
Yasuo Honda 2013-11-18 01:33:07 +09:00
parent ea76386493
commit 8e3474bede

View file

@ -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