spec/pg/result_spec.rb in pg-0.19.0.pre20160904200247 vs spec/pg/result_spec.rb in pg-0.19.0.pre20170115074000

- old
+ new

@@ -401,9 +401,16 @@ expect( r.cleared? ).to eq(false) r.clear expect( r.cleared? ).to eq(true) end + it "can be inspected before and after clear" do + r = @conn.exec "select 1" + expect( r.inspect ).to match(/status=PGRES_TUPLES_OK/) + r.clear + expect( r.inspect ).to match(/cleared/) + end + context 'result value conversions with TypeMapByColumn' do let!(:textdec_int){ PG::TextDecoder::Integer.new name: 'INT4', oid: 23 } let!(:textdec_float){ PG::TextDecoder::Float.new name: 'FLOAT4', oid: 700 } it "should allow reading, assigning and diabling type conversions" do