lib/rubocop/cop/rspec/message_expectation.rb in rubocop-rspec-2.26.1 vs lib/rubocop/cop/rspec/message_expectation.rb in rubocop-rspec-2.27.0

- old
+ new

@@ -27,10 +27,9 @@ class MessageExpectation < Base include ConfigurableEnforcedStyle MSG = 'Prefer `%<style>s` for setting message expectations.' - SUPPORTED_STYLES = %w[allow expect].freeze RESTRICT_ON_SEND = %i[to].freeze # @!method message_expectation(node) def_node_matcher :message_expectation, <<~PATTERN (send $(send nil? {:expect :allow} ...) :to #receive_message?)