lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -37,9 +37,10 @@
(send nil? { :receive :receive_message_chain } ...) # receive(:foo)
(send (send nil? :receive ...) :with ...) # receive(:foo).with('bar')
}
PATTERN
+ # @!method configured_response?(node)
def_node_matcher :configured_response?, <<~PATTERN
{ :and_return :and_raise :and_throw :and_yield
:and_call_original :and_wrap_original }
PATTERN