summaryrefslogtreecommitdiff
path: root/spec/support/matchers.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-27 12:44:51 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-02 15:04:28 -0500
commit29746bd6f37b1ff0b34c108b389d4603a20de110 (patch)
tree06e73e853f59b185db9920b3ae06d789987e26b5 /spec/support/matchers.rb
parent17107b22ad41ee306f534bcee375bb3d08d5f460 (diff)
downloadbundler-29746bd6f37b1ff0b34c108b389d4603a20de110.tar.gz
[RuboCop] Fix offenses
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r--spec/support/matchers.rb5
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