aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-07-28 15:12:02 +0200
committerYves Senn <yves.senn@gmail.com>2014-07-28 15:12:02 +0200
commit473819985a3c2ae54386fc8149e72c2b1a23a887 (patch)
tree071ddc98232e91e13f33b76143eadac332c8c542 /activerecord
parent362cbabf3f623401fc5ef9c0078d77983907f0af (diff)
parentbe58912c84ee5130ebb49d55bb59b63a2432d896 (diff)
downloadrails-473819985a3c2ae54386fc8149e72c2b1a23a887.tar.gz
rails-473819985a3c2ae54386fc8149e72c2b1a23a887.tar.bz2
rails-473819985a3c2ae54386fc8149e72c2b1a23a887.zip
Merge pull request #16318 from zuhao/refactor_activerecord_adapter_test
make `adapter_test` run order independently.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapter_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb
index 778c4ed7e5..6f84bae432 100644
--- a/activerecord/test/cases/adapter_test.rb
+++ b/activerecord/test/cases/adapter_test.rb
@@ -192,7 +192,7 @@ module ActiveRecord
def test_select_methods_passing_a_association_relation
author = Author.create!(name: 'john')
Post.create!(author: author, title: 'foo', body: 'bar')
- query = author.posts.select(:title)
+ query = author.posts.where(title: 'foo').select(:title)
assert_equal({"title" => "foo"}, @connection.select_one(query.arel, nil, query.bind_values))
assert_equal({"title" => "foo"}, @connection.select_one(query))
assert @connection.select_all(query).is_a?(ActiveRecord::Result)