Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #16318 from zuhao/refactor_activerecord_adapter_test

make `adapter_test` run order independently.
  • Loading branch information...
commit 473819985a3c2ae54386fc8149e72c2b1a23a887 2 parents 362cbab + be58912
@senny senny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/adapter_test.rb
View
2  activerecord/test/cases/adapter_test.rb
@@ -192,7 +192,7 @@ def test_select_all_always_return_activerecord_result
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)
Please sign in to comment.
Something went wrong with that request. Please try again.