Skip to content

Commit

Permalink
Merge pull request #1770 from rubocop/remove-constants
Browse files Browse the repository at this point in the history
Remove unnecessary constants
  • Loading branch information
ydah authored Jan 5, 2024
2 parents b303710 + 2cb8ab5 commit 297a3a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/rubocop/cop/rspec/message_expectation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class MessageExpectation < Base

MSG = 'Prefer `%<style>s` for setting message expectations.'

SUPPORTED_STYLES = %w[allow expect].freeze
RESTRICT_ON_SEND = %i[to].freeze

# @!method message_expectation(node)
Expand Down
2 changes: 0 additions & 2 deletions lib/rubocop/cop/rspec/message_spies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ class MessageSpies < Base
'expectations. Setup `%<source>s` as a spy using ' \
'`allow` or `instance_spy`.'

SUPPORTED_STYLES = %w[have_received receive].freeze

RESTRICT_ON_SEND = Runners.all

# @!method message_expectation(node)
Expand Down

0 comments on commit 297a3a2

Please sign in to comment.