Skip to content
Browse files

Address test_merging_where_relations failure by adding `order("posts.…

…id")`
  • Loading branch information...
1 parent ea76386 commit 8e3474bedeebc57903c258830be0dba559ffee9d @yahonda yahonda committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relation/merging_test.rb
View
2 activerecord/test/cases/relation/merging_test.rb
@@ -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

0 comments on commit 8e3474b

Please sign in to comment.
Something went wrong with that request. Please try again.