1
0
Fork 0
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:
Carlos Antonio da Silva 2013-11-17 13:58:28 -08:00
commit f60d00c56e

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