diff options
Diffstat (limited to 'spec/ruby/library/stringio/readbyte_spec.rb')
| -rw-r--r-- | spec/ruby/library/stringio/readbyte_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/stringio/readbyte_spec.rb b/spec/ruby/library/stringio/readbyte_spec.rb index 0fbc49a4dd..41a0911293 100644 --- a/spec/ruby/library/stringio/readbyte_spec.rb +++ b/spec/ruby/library/stringio/readbyte_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' require 'stringio' -require File.expand_path('../shared/readchar', __FILE__) +require_relative 'shared/readchar' describe "StringIO#readbyte" do it_behaves_like :stringio_readchar, :readbyte @@ -8,10 +8,10 @@ describe "StringIO#readbyte" do it "reads the next 8-bit byte from self's current position" do io = StringIO.new("example") - io.send(@method).should == 101 + io.readbyte.should == 101 io.pos = 4 - io.send(@method).should == 112 + io.readbyte.should == 112 end end |
