Use the built bundled gems in test-all as well as test-bundled-gems

This commit is contained in:
Nobuyoshi Nakada 2022-12-07 21:41:36 +09:00
parent 5738ae70d9
commit b19490f75d
Notes: git 2022-12-08 17:20:39 +00:00

View File

@ -1,14 +1,16 @@
# frozen_string_literal: true
# Should be done in rubygems test files?
ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
ENV["GEM_SKIP"] = "".freeze
ENV.delete("RUBY_CODESIGN")
Warning[:experimental] = false
# Get bundled gems on load path
Dir.glob("#{__dir__}/../.bundle/gems/*/*.gemspec")
.reject {|f| f =~ /minitest|test-unit|power_assert/ }
.map {|f| $LOAD_PATH.unshift File.join(File.dirname(f), "lib") }
gem_path = [
File.realdirpath(".bundle"),
File.realdirpath("../.bundle", __dir__),
]
ENV["GEM_PATH"] = gem_path.join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = gem_path.first
require_relative '../tool/test/runner'