summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/getc_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/getc_spec.rb')
-rw-r--r--spec/ruby/library/stringio/getc_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/library/stringio/getc_spec.rb b/spec/ruby/library/stringio/getc_spec.rb
index f7e98d2a33..263d418316 100644
--- a/spec/ruby/library/stringio/getc_spec.rb
+++ b/spec/ruby/library/stringio/getc_spec.rb
@@ -1,16 +1,16 @@
-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
- it "returns the charactor at the current position" 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