[ruby/yaml] We should load rubygems for optional pstore gem

https://github.com/ruby/yaml/commit/d32dc11205
This commit is contained in:
Hiroshi SHIBATA 2025-01-14 13:32:55 +09:00 committed by git
parent 61d3f9a1a5
commit 382277f9bf

View File

@ -137,7 +137,7 @@ class YAMLStoreTest < Test::Unit::TestCase
def test_yaml_store_files_are_accessed_as_binary_files
bug5311 = '[ruby-core:39503]'
n = 128
assert_in_out_err(["-Eutf-8:utf-8", "-ryaml/store", "-", @yaml_store_file], <<-SRC, [bug5311], [], bug5311, timeout: 60)
assert_in_out_err(["-Eutf-8:utf-8", "-rrubygems", "-ryaml/store", "-", @yaml_store_file], <<-SRC, [bug5311], [], bug5311, timeout: 60)
@yaml_store = YAML::Store.new(ARGV[0])
(1..#{n}).each do |i|
@yaml_store.transaction {@yaml_store["Key\#{i}"] = "value \#{i}"}