summaryrefslogtreecommitdiff
path: root/spec/support/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r--spec/support/helpers.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 1b2769ebf8..800ea82c03 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -52,10 +52,9 @@ module Spec
def run(cmd, *args)
opts = args.last.is_a?(Hash) ? args.pop : {}
- env = opts.delete(:env)
groups = args.map(&:inspect).join(", ")
setup = "require 'rubygems' ; require 'bundler' ; Bundler.setup(#{groups})\n"
- @out = ruby(setup + cmd, :env => env)
+ @out = ruby(setup + cmd, opts)
end
bang :run