Permalink
Browse files

Merge pull request #16318 from zuhao/refactor_activerecord_adapter_test

make `adapter_test` run order independently.
  • Loading branch information...
2 parents 362cbab + be58912 commit 473819985a3c2ae54386fc8149e72c2b1a23a887 @senny senny committed Jul 28, 2014
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)

0 comments on commit 4738199

Please sign in to comment.