lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-1.25.1 vs lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-1.26.0
- old
+ new
@@ -20,12 +20,10 @@
#
class InstanceSpy < Cop
MSG = 'Use `instance_spy` when you check your double '\
'with `have_received`.'.freeze
- EXAMPLES = Examples::ALL.node_pattern_union.freeze
-
- def_node_matcher :example?, "(block $(send nil? #{EXAMPLES}) ...)"
+ def_node_matcher :example?, Examples::ALL.block_pattern
def_node_search :null_double, <<-PATTERN
(lvasgn $_
(send
$(send nil? :instance_double