Skip to content

Commit 2c366d8

Browse files
committed
fixup! Change clean env wrapper name
1 parent f742f9f commit 2c366d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/sanity_check_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
before{ FileUtils.mkdir_p tmp_root }
99

10-
def bundler_env
10+
def with_clean_env
1111
if Bundler.respond_to?(:with_unbundled_env)
1212
Bundler.with_unbundled_env { yield }
1313
else
@@ -25,7 +25,7 @@ def bundler_env
2525
end
2626
FileUtils.chmod 0777, script
2727

28-
bundler_env do
28+
with_clean_env do
2929
expect(`bundle exec #{script} 2>&1`).
3030
to match(/uninitialized constant RSpec::Support/).
3131
or match(/undefined method `require_rspec_core' for RSpec::Support:Module/)
@@ -46,7 +46,7 @@ def bundler_env
4646
end
4747
FileUtils.chmod 0777, script
4848

49-
bundler_env do
49+
with_clean_env do
5050
expect(`bundle exec #{script} 2>&1`).to be_empty
5151
expect($?.exitstatus).to eq(0)
5252
end

0 commit comments

Comments
 (0)