summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/getbyte_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/getbyte_spec.rb')
-rw-r--r--spec/ruby/core/io/getbyte_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/getbyte_spec.rb b/spec/ruby/core/io/getbyte_spec.rb
index b4351160e6..668d81519c 100644
--- a/spec/ruby/core/io/getbyte_spec.rb
+++ b/spec/ruby/core/io/getbyte_spec.rb
@@ -23,7 +23,7 @@ describe "IO#getbyte" do
end
it "raises an IOError on closed stream" do
- -> { IOSpecs.closed_io.getbyte }.should raise_error(IOError)
+ -> { IOSpecs.closed_io.getbyte }.should.raise(IOError)
end
end
@@ -53,6 +53,6 @@ describe "IO#getbyte" do
end
it "raises an IOError if the stream is not readable" do
- -> { @io.getbyte }.should raise_error(IOError)
+ -> { @io.getbyte }.should.raise(IOError)
end
end