lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -23,18 +23,18 @@
MSG = 'Use `instance_spy` when you check your double ' \
'with `have_received`.'
# @!method null_double(node)
- def_node_search :null_double, <<-PATTERN
+ def_node_search :null_double, <<~PATTERN
(lvasgn $_
(send
$(send nil? :instance_double
...) :as_null_object))
PATTERN
# @!method have_received_usage(node)
- def_node_search :have_received_usage, <<-PATTERN
+ def_node_search :have_received_usage, <<~PATTERN
(send
(send nil? :expect
(lvar $_)) :to
(send nil? :have_received
...)