diff options
Diffstat (limited to 'spec/ruby/library/stringio/shared')
-rw-r--r-- | spec/ruby/library/stringio/shared/read.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringio/shared/read.rb b/spec/ruby/library/stringio/shared/read.rb index 025829a2b1..604bf880e5 100644 --- a/spec/ruby/library/stringio/shared/read.rb +++ b/spec/ruby/library/stringio/shared/read.rb @@ -27,8 +27,8 @@ describe :stringio_read, shared: true do lambda { @io.send(@method, 7, Object.new) }.should raise_error(TypeError) end - it "raises an error when passed a frozen String as buffer" do - lambda { @io.send(@method, 7, "".freeze) }.should raise_error(RuntimeError) + it "raises a #{frozen_error_class} error when passed a frozen String as buffer" do + lambda { @io.send(@method, 7, "".freeze) }.should raise_error(frozen_error_class) end end |