From 9d3f65c229fc76234a12ce042df32bdf7f8789d0 Mon Sep 17 00:00:00 2001 From: Herwin Date: Wed, 6 Dec 2023 09:31:22 +0100 Subject: [PATCH] Cleanup of IO#getc usage in specs of IO#read `IO#getc` returns a character string, there is no need to call `#chr` on the result. It looks like it got confused with `IO#getbyte`. --- core/io/read_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/read_spec.rb b/core/io/read_spec.rb index db11468ea..b37c6c712 100644 --- a/core/io/read_spec.rb +++ b/core/io/read_spec.rb @@ -331,7 +331,7 @@ @io.read(0).should == '' @io.pos.should == 0 - @io.getc.chr.should == '1' + @io.getc.should == '1' end it "is at end-of-file when everything has been read" do