summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-22 22:26:41 -0700
committerStan Hu <stanhu@gmail.com>2015-06-22 22:26:41 -0700
commit9369adb93d119ca349add2b7f80d6a9b4bbd6703 (patch)
tree9f9f075cbdadf4a5bb1815c36d14bfc21c580bd0
parent52aa21b12d692185a93cca529a2649fdeac6551d (diff)
downloadgitlab-ce-9369adb93d119ca349add2b7f80d6a9b4bbd6703.tar.gz
Fix Style/NonNilCheck cop violationsrubocop-for-tests
-rw-r--r--spec/support/matchers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index f8cce2ea5a3..5f0c270f967 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -1,6 +1,6 @@
RSpec::Matchers.define :be_valid_commit do
match do |actual|
- actual != nil
+ !actual.nil?
actual.id == ValidCommit::ID
actual.message == ValidCommit::MESSAGE
actual.author_name == ValidCommit::AUTHOR_FULL_NAME