diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2013-11-18 01:33:07 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2013-11-18 02:10:56 +0900 |
commit | 8e3474bedeebc57903c258830be0dba559ffee9d (patch) | |
tree | d91d9cf8ce9382510b07d5099c93af1be9023891 | |
parent | ea76386493ff93b07d205fdb3f1aace000c59c0f (diff) | |
download | rails-8e3474bedeebc57903c258830be0dba559ffee9d.tar.gz rails-8e3474bedeebc57903c258830be0dba559ffee9d.tar.bz2 rails-8e3474bedeebc57903c258830be0dba559ffee9d.zip |
Address test_merging_where_relations failure by adding `order("posts.id")`
-rw-r--r-- | activerecord/test/cases/relation/merging_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation/merging_test.rb b/activerecord/test/cases/relation/merging_test.rb index 782c8bc1fd..9f9244f9b2 100644 --- a/activerecord/test/cases/relation/merging_test.rb +++ b/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 |