diff options
author | Vitali Tatarintev <vtatarintev@gitlab.com> | 2019-08-26 16:13:41 +0300 |
---|---|---|
committer | Vitali Tatarintev <vtatarintev@gitlab.com> | 2019-08-28 09:43:47 +0300 |
commit | 17385f4dc42d86d7606e3359b9db82cb43d5e534 (patch) | |
tree | dfd8bc788c36d021ff3224f321299b0927ca4150 /rubocop/cop | |
parent | 99b27e69510e83006d4dd2e5ecc5c555409aa4a0 (diff) |
Refactor BeSuccessMatcher specs for readability
Diffstat (limited to 'rubocop/cop')
-rw-r--r-- | rubocop/cop/rspec/be_success_matcher.rb | 2 |
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)) |