aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-06-02 16:24:54 +0900
committerGitHub <noreply@github.com>2019-06-02 16:24:54 +0900
commit9374c5bc75da566ef6653f058eec052e80de772c (patch)
treeed3b9928e1572b152f316322d96debb799cf84fa /activerecord
parent22274d320e36a4750fd83b096fb3a490c96559d6 (diff)
parent86384ea88968f38e79728fbe584a7de518acfed0 (diff)
downloadrails-9374c5bc75da566ef6653f058eec052e80de772c.tar.gz
rails-9374c5bc75da566ef6653f058eec052e80de772c.tar.bz2
rails-9374c5bc75da566ef6653f058eec052e80de772c.zip
Merge pull request #36378 from yahonda/test_pluck_columns_with_same_name
Address occasional test_pluck_columns_with_same_name failure
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/calculations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb
index 0d13174e12..e42af3686e 100644
--- a/activerecord/test/cases/calculations_test.rb
+++ b/activerecord/test/cases/calculations_test.rb
@@ -837,7 +837,7 @@ class CalculationsTest < ActiveRecord::TestCase
def test_pluck_columns_with_same_name
expected = [["The First Topic", "The Second Topic of the day"], ["The Third Topic of the day", "The Fourth Topic of the day"]]
- actual = Topic.joins(:replies)
+ actual = Topic.joins(:replies).order(:id)
.pluck("topics.title", "replies_topics.title")
assert_equal expected, actual
end