Need to install all of dependency for bundler test suite

This commit is contained in:
Hiroshi SHIBATA 2024-11-18 19:06:15 +09:00
parent 73614b6efe
commit 2dc8c48e09
Notes: git 2024-11-18 11:46:26 +00:00
2 changed files with 7 additions and 1 deletions

View File

@ -1601,7 +1601,8 @@ no-install-for-test-bundled-gems: no-update-default-gemspecs
yes-install-for-test-bundled-gems: yes-update-default-gemspecs
$(XRUBY) -C "$(srcdir)" -r./tool/lib/gem_env.rb bin/gem \
install --no-document --conservative \
"hoe" "json-schema" "test-unit-rr" "simplecov" "simplecov-html" "simplecov-json" "rspec" "zeitwerk"
"hoe" "json-schema" "test-unit-rr" "simplecov" "simplecov-html" "simplecov-json" "rspec" "zeitwerk" \
"sinatra" "rack" "tilt" "mustermann" "base64" "compact_index" "rack-test"
test-bundled-gems-fetch: yes-test-bundled-gems-fetch
yes-test-bundled-gems-fetch:

View File

@ -27,6 +27,11 @@ RSpec.configure do |config|
config.around(:each) do |example|
FileUtils.cp_r Spec::Path.pristine_system_gem_path, Spec::Path.system_gem_path
FileUtils.mkdir_p Spec::Path.base_system_gem_path.join("gems")
%w[sinatra rack tilt rack-protection rack-session rack-test mustermann base64 compact_index].each do |gem|
path = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)].map(&:to_s).first
FileUtils.cp_r path, Spec::Path.base_system_gem_path.join("gems")
end
with_gem_path_as(system_gem_path) do
Bundler.ui.silence { example.run }