Skip to content

Commit 2487a37

Browse files
vbrazokamipo
authored andcommitted
Fix deprecation hash warning - activerecord test
1 parent f818eb5 commit 2487a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/adapter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def test_select_all_with_legacy_binds
227227
post = Post.create!(title: "foo", body: "bar")
228228
expected = @connection.select_all("SELECT * FROM posts WHERE id = #{post.id}")
229229
result = @connection.select_all("SELECT * FROM posts WHERE id = #{Arel::Nodes::BindParam.new(nil).to_sql}", nil, [[nil, post.id]])
230-
assert_equal expected.to_hash, result.to_hash
230+
assert_equal expected.to_a, result.to_a
231231
end
232232

233233
def test_insert_update_delete_with_legacy_binds

0 commit comments

Comments
 (0)