lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -34,10 +34,10 @@
'`allow` or `instance_spy`.'
SUPPORTED_STYLES = %w[have_received receive].freeze
def_node_matcher :message_expectation, %(
- (send (send nil? :expect $_) #{Runners::ALL.node_pattern_union} ...)
+ (send (send nil? :expect $_) #Runners.all ...)
)
def_node_search :receive_message, %(
$(send nil? {:receive :have_received} ...)
)