Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-23 08:26:41 +0300
committerStan Hu <stanhu@gmail.com>2015-06-23 08:26:41 +0300
commit9369adb93d119ca349add2b7f80d6a9b4bbd6703 (patch)
tree9f9f075cbdadf4a5bb1815c36d14bfc21c580bd0 /spec/support
parent52aa21b12d692185a93cca529a2649fdeac6551d (diff)
Fix Style/NonNilCheck cop violations
Diffstat (limited to 'spec/support')
-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