Skip to content

Commit 3a1f696

Browse files
committed
Remove useless "with_clean_env"
1 parent b6532bf commit 3a1f696

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

features/support/env.rb

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ def run_command(cmd, timeout = nil)
77
unset_bundler_env_vars
88
# Ensure the correct Gemfile and binstubs are found
99
in_current_directory do
10-
with_unbundled_env do
11-
super(exec_cmd, timeout)
12-
end
10+
super(exec_cmd, timeout)
1311
end
1412
end
1513

1614
def unset_bundler_env_vars
17-
empty_env = with_environment { with_unbundled_env { ENV.to_h } }
15+
empty_env = with_environment { ENV.to_h }
1816
aruba_env = aruba.environment.to_h
1917
(aruba_env.keys - empty_env.keys).each do |key|
2018
delete_environment_variable key
@@ -23,14 +21,6 @@ def unset_bundler_env_vars
2321
set_environment_variable k, v
2422
end
2523
end
26-
27-
def with_unbundled_env
28-
if Bundler.respond_to?(:with_unbundled_env)
29-
Bundler.with_unbundled_env { yield }
30-
else
31-
Bundler.with_clean_env { yield }
32-
end
33-
end
3424
end
3525

3626
World(ArubaExt)

0 commit comments

Comments
 (0)