aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/stringio/getbyte_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/getbyte_spec.rb')
-rw-r--r--spec/ruby/library/stringio/getbyte_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/stringio/getbyte_spec.rb b/spec/ruby/library/stringio/getbyte_spec.rb
index 99737614b9..3daa3d8e02 100644
--- a/spec/ruby/library/stringio/getbyte_spec.rb
+++ b/spec/ruby/library/stringio/getbyte_spec.rb
@@ -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