lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-2.16.0
- old
+ new
@@ -39,9 +39,11 @@
'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)
def_node_matcher :message_expectation, %(
(send (send nil? :expect $_) #Runners.all ...)
)