@@ -23,7 +23,7 @@ def test_run_srb_from_bundler
2323 source 'https://rubygems.org'
2424 gem 'sorbet'
2525 GEM
26- Bundler . with_clean_env do
26+ Bundler . with_unbundled_env do
2727 _ , _ , status = @project . bundle_install
2828 assert ( status )
2929
@@ -37,7 +37,7 @@ def test_run_srb_from_bundler
3737
3838 def test_run_srb_from_bundler_not_found
3939 @project . gemfile ( "source 'https://rubygems.org'" )
40- Bundler . with_clean_env do
40+ Bundler . with_unbundled_env do
4141 _ , _ , status = @project . bundle_install
4242 assert ( status )
4343
@@ -47,7 +47,7 @@ def test_run_srb_from_bundler_not_found
4747 end
4848
4949 def test_run_sorbet_from_path
50- Bundler . with_clean_env do
50+ Bundler . with_unbundled_env do
5151 out , status = Spoom ::Sorbet . srb (
5252 "-h" ,
5353 path : @project . path ,
@@ -72,7 +72,7 @@ def test_run_sorbet_from_path
7272 end
7373
7474 def test_run_sorbet_tc_from_path
75- Bundler . with_clean_env do
75+ Bundler . with_unbundled_env do
7676 out , status = Spoom ::Sorbet . srb_tc (
7777 path : @project . path ,
7878 capture_err : true ,
0 commit comments