diff options
Diffstat (limited to 'spec/bundler/runtime/self_management_spec.rb')
-rw-r--r-- | spec/bundler/runtime/self_management_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/bundler/runtime/self_management_spec.rb b/spec/bundler/runtime/self_management_spec.rb index a481ae3a4d..4b2ac2afc3 100644 --- a/spec/bundler/runtime/self_management_spec.rb +++ b/spec/bundler/runtime/self_management_spec.rb @@ -10,7 +10,7 @@ RSpec.describe "Self management" do "9.4.0" end - before do + around do |example| build_repo4 do build_bundler previous_minor @@ -26,6 +26,8 @@ RSpec.describe "Self management" do G pristine_system_gems "bundler-#{current_version}" + + with_env_vars("BUNDLER_4_MODE" => nil, &example) end it "installs locked version when using system path and uses it" do |