diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-27 12:44:51 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-02 15:04:28 -0500 |
commit | 29746bd6f37b1ff0b34c108b389d4603a20de110 (patch) | |
tree | 06e73e853f59b185db9920b3ae06d789987e26b5 /spec/support/matchers.rb | |
parent | 17107b22ad41ee306f534bcee375bb3d08d5f460 (diff) | |
download | bundler-29746bd6f37b1ff0b34c108b389d4603a20de110.tar.gz |
[RuboCop] Fix offenses
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r-- | spec/support/matchers.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index e4244294b1..4545feabfa 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -175,9 +175,8 @@ module Spec next "checking for #{name} failed:\n#{e}" end next if out == "WIN" - if version.nil? - next "expected #{name} to not be installed, but it was" - elsif Gem::Version.new(out) == Gem::Version.new(version) + next "expected #{name} to not be installed, but it was" if version.nil? + if Gem::Version.new(out) == Gem::Version.new(version) next "expected #{name} (#{version}) not to be installed, but it was" end end.compact |