diff options
Diffstat (limited to 'spec/ruby/library/stringio/getc_spec.rb')
| -rw-r--r-- | spec/ruby/library/stringio/getc_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/stringio/getc_spec.rb b/spec/ruby/library/stringio/getc_spec.rb index 804502d8ba..263d418316 100644 --- a/spec/ruby/library/stringio/getc_spec.rb +++ b/spec/ruby/library/stringio/getc_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#getc" do it_behaves_like :stringio_getc, :getc @@ -8,9 +8,9 @@ describe "StringIO#getc" do it "returns the character at the current position" do io = StringIO.new("example") - io.send(@method).should == ?e - io.send(@method).should == ?x - io.send(@method).should == ?a + io.getc.should == ?e + io.getc.should == ?x + io.getc.should == ?a end end |
