Skip to content
Browse files

Merge pull request #12929 from yahonda/test_merging_where_relations_a…

…dd_order

Address test_merging_where_relations failure by adding order
  • Loading branch information...
2 parents ea76386 + 8e3474b commit f60d00c56eb93d8a9ffb85a3af7e405f33ddf7f5 @carlosantoniodasilva carlosantoniodasilva committed Nov 17, 2013
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 f60d00c

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