diff options
Diffstat (limited to 'spec/ruby/library/stringio/getbyte_spec.rb')
| -rw-r--r-- | spec/ruby/library/stringio/getbyte_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/stringio/getbyte_spec.rb b/spec/ruby/library/stringio/getbyte_spec.rb index 163cb9d0c6..3daa3d8e02 100644 --- a/spec/ruby/library/stringio/getbyte_spec.rb +++ b/spec/ruby/library/stringio/getbyte_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' require 'stringio' -require File.expand_path('../shared/getc', __FILE__) +require_relative 'shared/getc' describe "StringIO#getbyte" do it_behaves_like :stringio_getc, :getbyte @@ -8,9 +8,9 @@ describe "StringIO#getbyte" do it "returns the 8-bit byte at the current position" do io = StringIO.new("example") - io.send(@method).should == 101 - io.send(@method).should == 120 - io.send(@method).should == 97 + io.getbyte.should == 101 + io.getbyte.should == 120 + io.getbyte.should == 97 end end |
