Skip to content

Commit

Permalink
Use the built bundled gems in test-all as well as test-bundled-gems
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 8, 2022
1 parent 5738ae7 commit b19490f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/runner.rb
@@ -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'

0 comments on commit b19490f

Please sign in to comment.