diff options
| author | Stan Hu <stanhu@gmail.com> | 2015-06-22 22:26:41 -0700 |
|---|---|---|
| committer | Stan Hu <stanhu@gmail.com> | 2015-06-22 22:26:41 -0700 |
| commit | 9369adb93d119ca349add2b7f80d6a9b4bbd6703 (patch) | |
| tree | 9f9f075cbdadf4a5bb1815c36d14bfc21c580bd0 /spec/support | |
| parent | 52aa21b12d692185a93cca529a2649fdeac6551d (diff) | |
| download | gitlab-ce-9369adb93d119ca349add2b7f80d6a9b4bbd6703.tar.gz | |
Fix Style/NonNilCheck cop violationsrubocop-for-tests
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/matchers.rb | 2 |
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 |
