summaryrefslogtreecommitdiff
path: root/spec/runtime
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-12 15:38:55 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-12 16:31:07 +0100
commit544e57cbe9bccd4f6e85c2ccea7e8d4a8c0f59fa (patch)
treeb7f371d5f43955ad84b46a9c44285e1c6fbc9500 /spec/runtime
parent7c1e5152b19010c95fbbfb62ddfdd753911d94b3 (diff)
downloadbundler-544e57cbe9bccd4f6e85c2ccea7e8d4a8c0f59fa.tar.gz
Pass a generic options hash to `sys_exec`
For consistency with the rest of helpers.
Diffstat (limited to 'spec/runtime')
-rw-r--r--spec/runtime/gem_tasks_spec.rb4
-rw-r--r--spec/runtime/setup_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index f85f364865..91ea5cf189 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -29,7 +29,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
it "includes the relevant tasks" do
with_gem_path_as(Spec::Path.base_system_gems.to_s) do
- sys_exec "#{rake} -T", "RUBYOPT" => "-I#{lib_dir}"
+ sys_exec "#{rake} -T", :env => { "RUBYOPT" => "-I#{lib_dir}" }
end
expect(err).to be_empty
@@ -47,7 +47,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
it "defines a working `rake install` task" do
with_gem_path_as(Spec::Path.base_system_gems.to_s) do
- sys_exec "#{rake} install", "RUBYOPT" => "-I#{lib_dir}"
+ sys_exec "#{rake} install", :env => { "RUBYOPT" => "-I#{lib_dir}" }
end
expect(err).to be_empty
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 7ffddbd151..8c2c55ac5b 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -1375,7 +1375,7 @@ end
end
it "takes care of requiring rubygems" do
- sys_exec("#{Gem.ruby} -I#{lib_dir} -e \"puts require('bundler/setup')\"", "RUBYOPT" => "--disable=gems")
+ sys_exec("#{Gem.ruby} -I#{lib_dir} -e \"puts require('bundler/setup')\"", :env => { "RUBYOPT" => "--disable=gems" })
expect(last_command.stdboth).to eq("true")
end