summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorVitali Tatarintev <vtatarintev@gitlab.com>2019-08-26 10:04:54 +0200
committerVitali Tatarintev <vtatarintev@gitlab.com>2019-08-28 08:43:47 +0200
commit99b27e69510e83006d4dd2e5ecc5c555409aa4a0 (patch)
tree80087416d0f94904e22f63bfbb39e6742b443b39 /.rubocop.yml
parentb61d26f496a2041d7124fd3280031deda3cf5a43 (diff)
downloadgitlab-ce-99b27e69510e83006d4dd2e5ecc5c555409aa4a0.tar.gz
Utilize Rubocop's Include for BeSuccessMatcher
Use Rubocop's Include instead of manually checking the matcher in controllers specs.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 012f4890c33..1319752fc9c 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -265,3 +265,11 @@ RSpec/EnvAssignment:
- 'ee/spec/**/rails_helper.rb'
- 'spec/**/spec_helper.rb'
- 'ee/spec/**/spec_helper.rb'
+RSpec/BeSuccessMatcher:
+ Enabled: true
+ Include:
+ - 'spec/controllers/**/*'
+ - 'ee/spec/controllers/**/*'
+ - 'spec/support/shared_examples/controllers/**/*'
+ - 'ee/spec/support/shared_examples/controllers/**/*'
+ - 'spec/support/controllers/**/*'