From 2dc8c48e09410f3473429c9de6432529828c67ca Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 18 Nov 2024 19:06:15 +0900 Subject: [PATCH] Need to install all of dependency for bundler test suite --- common.mk | 3 ++- spec/bundled_gems_spec.rb | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 3743cb9a0c..72cdf0ab7a 100644 --- a/common.mk +++ b/common.mk @@ -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: diff --git a/spec/bundled_gems_spec.rb b/spec/bundled_gems_spec.rb index 22a35dd498..cfbbe43eb4 100644 --- a/spec/bundled_gems_spec.rb +++ b/spec/bundled_gems_spec.rb @@ -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 }