From f52010b632fd8ff15a845593aaeb49730f755c80 Mon Sep 17 00:00:00 2001 From: Tyler Hunt Date: Wed, 3 Nov 2021 13:26:06 -0400 Subject: [PATCH] Use `Bundler.with_unbundled_env` `Bundler.with_clean_env` has been deprecated, so update the code to use `Bundler.with_unbundled_env` instead. --- lib/test_boosters/shell.rb | 2 +- spec/integration/integration_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test_boosters/shell.rb b/lib/test_boosters/shell.rb index f60574b..abd6c1c 100644 --- a/lib/test_boosters/shell.rb +++ b/lib/test_boosters/shell.rb @@ -29,7 +29,7 @@ def evaluate(command) end def with_clean_env - defined?(Bundler) ? Bundler.with_clean_env { yield } : yield + defined?(Bundler) ? Bundler.with_original_env { yield } : yield end def display_title(title) diff --git a/spec/integration/integration_helper.rb b/spec/integration/integration_helper.rb index 8a49df7..11f0403 100644 --- a/spec/integration/integration_helper.rb +++ b/spec/integration/integration_helper.rb @@ -29,7 +29,7 @@ def use_cucumber_config(file) # :reek:TooManyStatements def run_command(command) - Bundler.with_clean_env do + Bundler.with_original_env do cmd = "cd #{@project_path} && #{@env} #{command}" puts "Running: #{cmd}"