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:
authorVitali Tatarintev <vtatarintev@gitlab.com>2019-08-26 11:04:54 +0300
committerVitali Tatarintev <vtatarintev@gitlab.com>2019-08-28 09:43:47 +0300
commit99b27e69510e83006d4dd2e5ecc5c555409aa4a0 (patch)
tree80087416d0f94904e22f63bfbb39e6742b443b39 /rubocop/cop/rspec
parentb61d26f496a2041d7124fd3280031deda3cf5a43 (diff)
Utilize Rubocop's Include for BeSuccessMatcher
Use Rubocop's Include instead of manually checking the matcher in controllers specs.
Diffstat (limited to 'rubocop/cop/rspec')
-rw-r--r--rubocop/cop/rspec/be_success_matcher.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/rubocop/cop/rspec/be_success_matcher.rb b/rubocop/cop/rspec/be_success_matcher.rb
index ca937a8ee9f..0b7d737f4e2 100644
--- a/rubocop/cop/rspec/be_success_matcher.rb
+++ b/rubocop/cop/rspec/be_success_matcher.rb
@@ -41,7 +41,6 @@ module RuboCop
end
def on_send(node)
- return unless in_controller_spec?(node)
return unless be_success_usage?(node)
add_offense(node, location: :expression, message: MESSAGE)