lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.9.1 vs lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.10.0

- old
+ new

@@ -34,11 +34,11 @@ .freeze SUPPORTED_STYLES = %w(have_received receive).freeze def_node_matcher :message_expectation, %( - (send (send nil :expect (send nil $_)) :to ...) + (send (send nil :expect $_) {:to :to_not :not_to} ...) ) def_node_search :receive_message, %( $(send nil {:receive :have_received} ...) ) @@ -68,10 +68,10 @@ def error_message(receiver) case style when :receive MSG_RECEIVE when :have_received - MSG_HAVE_RECEIVED % receiver + MSG_HAVE_RECEIVED % receiver.source end end end end end