summaryrefslogtreecommitdiffhomepage
path: root/test/t/string.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-03-19 20:48:32 +0900
committerKOBAYASHI Shuji <[email protected]>2019-03-19 20:48:32 +0900
commitfbad7a15953deb718c350eda42ce389b606088fe (patch)
tree7102a746d3a6bdcb4fbd15700bac77540795458e /test/t/string.rb
parentf8b17d1ec4bc5c47b1c5a492d9e26752543620fd (diff)
downloadmruby-fbad7a15953deb718c350eda42ce389b606088fe.tar.gz
mruby-fbad7a15953deb718c350eda42ce389b606088fe.zip
Use `FrozenError` instead of `RuntimeError` in frozen object modification test
Diffstat (limited to 'test/t/string.rb')
-rw-r--r--test/t/string.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index 7d3dd3c9c..cf3702cbe 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -711,7 +711,7 @@ assert('String#freeze') do
str = "hello"
str.freeze
- assert_raise(RuntimeError) { str.upcase! }
+ assert_raise(FrozenError) { str.upcase! }
end
assert('String literal concatenation') do