lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-1.28.0
- old
+ new
@@ -20,11 +20,9 @@
#
class InstanceSpy < Cop
MSG = 'Use `instance_spy` when you check your double '\
'with `have_received`.'.freeze
- def_node_matcher :example?, Examples::ALL.block_pattern
-
def_node_search :null_double, <<-PATTERN
(lvasgn $_
(send
$(send nil? :instance_double
...) :as_null_object))