mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use FrozenError instead of RuntimeError in frozen object modification test
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user