summaryrefslogtreecommitdiffhomepage
path: root/test/t/string.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-03-20 18:43:41 +0900
committerGitHub <[email protected]>2019-03-20 18:43:41 +0900
commit3f7cd4687fc7ec46d8a8dd6c9c2505205cbd32a8 (patch)
tree90d501266388d9efde453cd0cc42b9fa1b24e02a /test/t/string.rb
parentcd3bf55b3e4b317a88c183eaf09e4b795c2e6e6f (diff)
parentfbad7a15953deb718c350eda42ce389b606088fe (diff)
downloadmruby-3f7cd4687fc7ec46d8a8dd6c9c2505205cbd32a8.tar.gz
mruby-3f7cd4687fc7ec46d8a8dd6c9c2505205cbd32a8.zip
Merge pull request #4333 from shuujii/use-FrozenError-instead-of-RuntimeError-in-frozen-obj-mod-test
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