summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Piotrowski <piotrowski+git@gmail.com>2019-03-03 19:28:33 +0100
committerJan Piotrowski <piotrowski+git@gmail.com>2019-03-03 19:28:33 +0100
commita15bdb4afe8815d3b5770a0adb3ec853863923c2 (patch)
tree0a0d65e1ce28da06d08fc00d568a640b7cf6b31f
parent7353fd888d6c5c7d0c58bd2589a9ec474d4c856d (diff)
downloadbundler-a15bdb4afe8815d3b5770a0adb3ec853863923c2.tar.gz
make rubocop happy
-rw-r--r--spec/commands/binstubs_spec.rb2
-rw-r--r--spec/commands/newgem_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb
index ddf58af5d9..9126b29592 100644
--- a/spec/commands/binstubs_spec.rb
+++ b/spec/commands/binstubs_spec.rb
@@ -133,7 +133,7 @@ RSpec.describe "bundle binstubs <gem>" do
context "when BUNDLER_VERSION is set" do
it "runs the correct version of bundler" do
- sys_exec "#{bundled_app("bin/bundle")} install", { 'BUNDLER_VERSION' => '999.999.999' }
+ sys_exec "#{bundled_app("bin/bundle")} install", "BUNDLER_VERSION" => "999.999.999"
expect(exitstatus).to eq(42) if exitstatus
expect(last_command.stderr).to include("Activating bundler (999.999.999) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '999.999.999'`")
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index 6539c7b4f1..0d1058ad11 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -162,7 +162,7 @@ RSpec.describe "bundle gem" do
load_paths = [lib, spec]
load_path_str = "-I#{load_paths.join(File::PATH_SEPARATOR)}"
- sys_exec "#{Gem.ruby} #{load_path_str} #{bindir.join("bundle")} gem #{gem_name}", { 'PATH' => '' }
+ sys_exec "#{Gem.ruby} #{load_path_str} #{bindir.join("bundle")} gem #{gem_name}", "PATH" => ""
end
it "creates the gem without the need for git" do