aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapter_test.rb
diff options
context:
space:
mode:
authorVitor Oliveira <vbrazo@gmail.com>2018-09-20 01:09:53 -0300
committerRyuta Kamizono <kamipo@gmail.com>2018-09-20 19:11:53 +0900
commit2487a379869648fd3e9a2a27be6b28e7a1aab98a (patch)
tree9abb549f90e56b203e5085720cf547ee12a7877f /activerecord/test/cases/adapter_test.rb
parentf818eb558b6b3546705c754fe7c7beb64df3b425 (diff)
downloadrails-2487a379869648fd3e9a2a27be6b28e7a1aab98a.tar.gz
rails-2487a379869648fd3e9a2a27be6b28e7a1aab98a.tar.bz2
rails-2487a379869648fd3e9a2a27be6b28e7a1aab98a.zip
Fix deprecation hash warning - activerecord test
Diffstat (limited to 'activerecord/test/cases/adapter_test.rb')
-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 a93e5e2b40..217ba22294 100644
--- a/activerecord/test/cases/adapter_test.rb
+++ b/activerecord/test/cases/adapter_test.rb
@@ -227,7 +227,7 @@ module ActiveRecord
post = Post.create!(title: "foo", body: "bar")
expected = @connection.select_all("SELECT * FROM posts WHERE id = #{post.id}")
result = @connection.select_all("SELECT * FROM posts WHERE id = #{Arel::Nodes::BindParam.new(nil).to_sql}", nil, [[nil, post.id]])
- assert_equal expected.to_hash, result.to_hash
+ assert_equal expected.to_a, result.to_a
end
def test_insert_update_delete_with_legacy_binds