summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/binstubs_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/commands/binstubs_spec.rb')
-rw-r--r--spec/bundler/commands/binstubs_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/bundler/commands/binstubs_spec.rb b/spec/bundler/commands/binstubs_spec.rb
index 2af5839a24..632c521caa 100644
--- a/spec/bundler/commands/binstubs_spec.rb
+++ b/spec/bundler/commands/binstubs_spec.rb
@@ -58,7 +58,7 @@ RSpec.describe "bundle binstubs <gem>" do
G
bundle "binstubs", :raise_on_error => false
- expect(exitstatus).to eq(1) if exitstatus
+ expect(exitstatus).to eq(1)
expect(err).to include("`bundle binstubs` needs at least one gem to run.")
end
@@ -123,7 +123,7 @@ RSpec.describe "bundle binstubs <gem>" do
context "when BUNDLER_VERSION is set" do
it "runs the correct version of bundler" do
sys_exec "bin/bundle install", :env => { "BUNDLER_VERSION" => "999.999.999" }, :raise_on_error => false
- expect(exitstatus).to eq(42) if exitstatus
+ expect(exitstatus).to eq(42)
expect(err).to include("Activating bundler (~> 999.999) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '~> 999.999'`")
end
@@ -137,7 +137,7 @@ RSpec.describe "bundle binstubs <gem>" do
it "runs the correct version of bundler" do
sys_exec "bin/bundle install", :raise_on_error => false
- expect(exitstatus).to eq(42) if exitstatus
+ expect(exitstatus).to eq(42)
expect(err).to include("Activating bundler (~> 999.999) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '~> 999.999'`")
end
@@ -152,7 +152,7 @@ RSpec.describe "bundle binstubs <gem>" do
it "runs the correct version of bundler" do
sys_exec "bin/bundle install", :raise_on_error => false
- expect(exitstatus).to eq(42) if exitstatus
+ expect(exitstatus).to eq(42)
expect(err).to include("Activating bundler (~> 44.0) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '~> 44.0'`")
end
@@ -167,7 +167,7 @@ RSpec.describe "bundle binstubs <gem>" do
it "runs the available version of bundler when the version is older and the same major" do
sys_exec "bin/bundle install"
- expect(exitstatus).not_to eq(42) if exitstatus
+ expect(exitstatus).not_to eq(42)
expect(err).not_to include("Activating bundler (~> 55.0) failed:")
end
end
@@ -181,7 +181,7 @@ RSpec.describe "bundle binstubs <gem>" do
it "runs the correct version of bundler when the version is a pre-release" do
sys_exec "bin/bundle install", :raise_on_error => false
- expect(exitstatus).to eq(42) if exitstatus
+ expect(exitstatus).to eq(42)
expect(err).to include("Activating bundler (~> 2.12.a) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '~> 2.12.a'`")
end
@@ -198,7 +198,7 @@ RSpec.describe "bundle binstubs <gem>" do
it "calls through to the explicit bundler version" do
sys_exec "bin/bundle update --bundler=999.999.999", :raise_on_error => false
- expect(exitstatus).to eq(42) if exitstatus
+ expect(exitstatus).to eq(42)
expect(err).to include("Activating bundler (~> 999.999) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '~> 999.999'`")
end
@@ -223,7 +223,7 @@ RSpec.describe "bundle binstubs <gem>" do
it "attempts to load that version" do
sys_exec bundled_app("bin/rackup").to_s, :raise_on_error => false
- expect(exitstatus).to eq(42) if exitstatus
+ expect(exitstatus).to eq(42)
expect(err).to include("Activating bundler (~> 999.999) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '~> 999.999'`")
end
@@ -297,7 +297,7 @@ RSpec.describe "bundle binstubs <gem>" do
bundle "binstubs doesnt_exist", :raise_on_error => false
- expect(exitstatus).to eq(7) if exitstatus
+ expect(exitstatus).to eq(7)
expect(err).to include("Could not find gem 'doesnt_exist'.")
end
end