From 85cbf3b9faddb6994f0dfb2ccec9fc4287a43dea Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Wed, 23 Oct 2024 20:58:56 +0200 Subject: [PATCH] Fix spec for TypeMapByColumn#inspect on ruby-head --- spec/pg/type_map_by_column_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/pg/type_map_by_column_spec.rb b/spec/pg/type_map_by_column_spec.rb index 61f46243d..b73f124a1 100644 --- a/spec/pg/type_map_by_column_spec.rb +++ b/spec/pg/type_map_by_column_spec.rb @@ -132,7 +132,7 @@ def initialize hash_param_nil = { value: nil, type: 17, format: 1 } res = @conn.exec_params( "SELECT $1::text, $2::text", [ hash_param_bin, hash_param_nil ], 0, col_map ) - expect( res.values ).to eq( [["{:value=>\"\\x00\\xFF\", :type=>17, :format=>1}", "{:value=>nil, :type=>17, :format=>1}"]] ) + expect( res.values ).to eq( [[{value:"\x00\xFF".b, type:17, format:1}.inspect, {value:nil, type:17, format:1}.inspect]] ) end it "shouldn't allow param mappings with different number of fields" do