summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorVitali Tatarintev <vtatarintev@gitlab.com>2019-08-26 15:13:41 +0200
committerVitali Tatarintev <vtatarintev@gitlab.com>2019-08-28 08:43:47 +0200
commit17385f4dc42d86d7606e3359b9db82cb43d5e534 (patch)
treedfd8bc788c36d021ff3224f321299b0927ca4150 /rubocop
parent99b27e69510e83006d4dd2e5ecc5c555409aa4a0 (diff)
downloadgitlab-ce-17385f4dc42d86d7606e3359b9db82cb43d5e534.tar.gz
Refactor BeSuccessMatcher specs for readability
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/rspec/be_success_matcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/rspec/be_success_matcher.rb b/rubocop/cop/rspec/be_success_matcher.rb
index 0b7d737f4e2..07dad061613 100644
--- a/rubocop/cop/rspec/be_success_matcher.rb
+++ b/rubocop/cop/rspec/be_success_matcher.rb
@@ -26,7 +26,7 @@ module RuboCop
class BeSuccessMatcher < RuboCop::Cop::Cop
include SpecHelpers
- MESSAGE = 'Do not use deprecated `success?` method, use `successful?` instead.'.freeze
+ MESSAGE = 'Do not use deprecated `success?` method, use `successful?` instead.'
def_node_search :expect_to_be_success?, <<~PATTERN
(send (send nil? :expect (send nil? ...)) {:to :not_to :to_not} (send nil? :be_success))