We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778b5fb commit 67fb917Copy full SHA for 67fb917
features/support/env.rb
@@ -4,12 +4,19 @@
4
module ArubaExt
5
def run_command(cmd, timeout = nil)
6
exec_cmd = cmd =~ /^rspec/ ? "bin/#{cmd}" : cmd
7
- # Ensure bundler env vars are unset
8
- unset_bundler_env_vars
9
- delete_environment_variable "BUNDLER_VERSION"
10
- # Ensure the correct Gemfile is found
+ # Ensure the correct Gemfile and binstubs are found
11
in_current_directory do
12
- super(exec_cmd, timeout)
+ with_unbundled_env do
+ super(exec_cmd, timeout)
+ end
13
14
+
15
+ def with_unbundled_env
16
+ if Bundler.respond_to?(:with_unbundled_env)
17
+ Bundler.with_unbundled_env { yield }
18
+ else
19
+ Bundler.with_clean_env { yield }
20
end
21
22
0 commit comments