Use erb instead of ostruct for test_frozen_loaded_features
This commit is contained in:
parent
574bfd2845
commit
4da545ddf3
Notes:
git
2025-01-08 08:12:43 +00:00
@ -532,7 +532,7 @@ class TestRequire < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_frozen_loaded_features
|
def test_frozen_loaded_features
|
||||||
bug3756 = '[ruby-core:31913]'
|
bug3756 = '[ruby-core:31913]'
|
||||||
assert_in_out_err(['-e', '$LOADED_FEATURES.freeze; require "ostruct"'], "",
|
assert_in_out_err(['-e', '$LOADED_FEATURES.freeze; require "erb"'], "",
|
||||||
[], /\$LOADED_FEATURES is frozen; cannot append feature \(RuntimeError\)$/,
|
[], /\$LOADED_FEATURES is frozen; cannot append feature \(RuntimeError\)$/,
|
||||||
bug3756)
|
bug3756)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user