Skip to content

Commit 7d94fa5

Browse files
committed
Fix deprecation warning for Bundler.with_clean_env
Fixes the following: [DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /Users/x/src/overcommit/spec/integration/gemfile_option_spec.rb:63)
1 parent 942969a commit 7d94fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/integration/gemfile_option_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run
6060
repo do
6161
# Since RSpec is being run within a Bundler context we need to clear it
6262
# in order to not taint the test
63-
Bundler.with_clean_env do
63+
Bundler.with_unbundled_env do
6464
FileUtils.mkdir_p(File.join(fake_gem_path, 'lib'))
6565
echo(gemspec, File.join(fake_gem_path, 'my_fake_gem.gemspec'))
6666
touch(File.join(fake_gem_path, 'lib', 'my_fake_gem.rb'))

0 commit comments

Comments
 (0)