Use FrozenError instead of RuntimeError in frozen object modification test

This commit is contained in:
KOBAYASHI Shuji
2019-03-19 20:48:32 +09:00
parent f8b17d1ec4
commit fbad7a1595
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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