summaryrefslogtreecommitdiff
path: root/test/stringio
diff options
context:
space:
mode:
Diffstat (limited to 'test/stringio')
-rw-r--r--test/stringio/test_stringio.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index f97ac877fc..f5169f641a 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -722,9 +722,9 @@ class TestStringIO < Test::Unit::TestCase
s = StringIO.new
s.freeze
bug = '[ruby-core:33648]'
- assert_raise(RuntimeError, bug) {s.puts("foo")}
- assert_raise(RuntimeError, bug) {s.string = "foo"}
- assert_raise(RuntimeError, bug) {s.reopen("")}
+ assert_raise(FrozenError, bug) {s.puts("foo")}
+ assert_raise(FrozenError, bug) {s.string = "foo"}
+ assert_raise(FrozenError, bug) {s.reopen("")}
end
def test_frozen_string