summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/runtime/with_unbundled_env_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/runtime/with_unbundled_env_spec.rb b/spec/runtime/with_unbundled_env_spec.rb
index c3957a1080..4e520a6ad6 100644
--- a/spec/runtime/with_unbundled_env_spec.rb
+++ b/spec/runtime/with_unbundled_env_spec.rb
@@ -1,12 +1,9 @@
# frozen_string_literal: true
RSpec.describe "Bundler.with_env helpers" do
- def bundle_exec_ruby!(code, *args)
+ def bundle_exec_ruby!(code)
build_bundler_context
- opts = args.last.is_a?(Hash) ? args.pop : {}
- opts[:env] ||= {}
- args.push opts
- bundle! "exec '#{Gem.ruby}' -e #{code}", *args
+ bundle! "exec '#{Gem.ruby}' -e #{code}"
end
def build_bundler_context