diff options
Diffstat (limited to 'spec/bundler/other/platform_spec.rb')
-rw-r--r-- | spec/bundler/other/platform_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/bundler/other/platform_spec.rb b/spec/bundler/other/platform_spec.rb index 0ad17a2722..a8fd4d51fb 100644 --- a/spec/bundler/other/platform_spec.rb +++ b/spec/bundler/other/platform_spec.rb @@ -170,7 +170,7 @@ G bundle "platform", :raise_on_error => false - expect(exitstatus).not_to eq(0) if exitstatus + expect(exitstatus).not_to eq(0) end it "raises an error if engine_version is used but engine is not" do @@ -183,7 +183,7 @@ G bundle "platform", :raise_on_error => false - expect(exitstatus).not_to eq(0) if exitstatus + expect(exitstatus).not_to eq(0) end it "raises an error if engine version doesn't match ruby version for MRI" do @@ -196,7 +196,7 @@ G bundle "platform", :raise_on_error => false - expect(exitstatus).not_to eq(0) if exitstatus + expect(exitstatus).not_to eq(0) end it "should print if no ruby version is specified" do @@ -265,27 +265,27 @@ G let(:patchlevel_fixnum) { "#{ruby_version_correct}, :patchlevel => #{RUBY_PATCHLEVEL}1" } def should_be_ruby_version_incorrect - expect(exitstatus).to eq(18) if exitstatus + expect(exitstatus).to eq(18) expect(err).to be_include("Your Ruby version is #{RUBY_VERSION}, but your Gemfile specified #{not_local_ruby_version}") end def should_be_engine_incorrect - expect(exitstatus).to eq(18) if exitstatus + expect(exitstatus).to eq(18) expect(err).to be_include("Your Ruby engine is #{local_ruby_engine}, but your Gemfile specified #{not_local_tag}") end def should_be_engine_version_incorrect - expect(exitstatus).to eq(18) if exitstatus + expect(exitstatus).to eq(18) expect(err).to be_include("Your #{local_ruby_engine} version is #{local_engine_version}, but your Gemfile specified #{local_ruby_engine} #{not_local_engine_version}") end def should_be_patchlevel_incorrect - expect(exitstatus).to eq(18) if exitstatus + expect(exitstatus).to eq(18) expect(err).to be_include("Your Ruby patchlevel is #{RUBY_PATCHLEVEL}, but your Gemfile specified #{not_local_patchlevel}") end def should_be_patchlevel_fixnum - expect(exitstatus).to eq(18) if exitstatus + expect(exitstatus).to eq(18) expect(err).to be_include("The Ruby patchlevel in your Gemfile must be a string") end |