diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-11-28 10:17:15 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-01-08 17:12:19 +0900 |
commit | d722bdcf6e6d195faf4ed03bbd8b2c07686a925b (patch) | |
tree | 5e763c3d8dcd7e9ee886b78e52ff074fae44c9e3 /spec | |
parent | 3e6f5ead9e0a0cbbf4d8930d7eb31db057d053c2 (diff) |
Convert ostruct to openstruct
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12531
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundled_gems.mspec | 1 | ||||
-rw-r--r-- | spec/default.mspec | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/bundled_gems.mspec b/spec/bundled_gems.mspec index 48f917c809..f7edb34c75 100644 --- a/spec/bundled_gems.mspec +++ b/spec/bundled_gems.mspec @@ -4,6 +4,7 @@ class MSpecScript test_bundled_gems = get(:stdlibs).to_a & get(:bundled_gems).to_a unless ENV["BUNDLED_GEMS"].nil? || ENV["BUNDLED_GEMS"].empty? test_bundled_gems = ENV["BUNDLED_GEMS"].split(",").map do |gem| + gem = "openstruct" if gem == "ostruct" test_bundled_gems.find{|test_gem| test_gem.include?(gem) } end.compact exit if test_bundled_gems.empty? diff --git a/spec/default.mspec b/spec/default.mspec index ecd3f3afe9..058835cd10 100644 --- a/spec/default.mspec +++ b/spec/default.mspec @@ -34,7 +34,9 @@ class MSpecScript # Disable to run for bundled gems in test-spec set :bundled_gems, (File.readlines("#{srcdir}/gems/bundled_gems").map do |line| next if /^\s*(?:#|$)/ =~ line - "#{srcdir}/spec/ruby/library/" + line.split.first + gem = line.split.first + gem = "openstruct" if gem == "ostruct" + "#{srcdir}/spec/ruby/library/#{gem}" end.compact) set :stdlibs, Dir.glob("#{srcdir}/spec/ruby/library/*") set :library, get(:stdlibs).to_a - get(:bundled_gems).to_a |