lib/rubocop/cop/rspec/be_nil.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/be_nil.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -31,15 +31,15 @@
BE_MSG = 'Prefer `be(nil)` over `be_nil`.'
BE_NIL_MSG = 'Prefer `be_nil` over `be(nil)`.'
RESTRICT_ON_SEND = %i[be be_nil].freeze
# @!method be_nil_matcher?(node)
- def_node_matcher :be_nil_matcher?, <<-PATTERN
+ def_node_matcher :be_nil_matcher?, <<~PATTERN
(send nil? :be_nil)
PATTERN
# @!method nil_value_expectation?(node)
- def_node_matcher :nil_value_expectation?, <<-PATTERN
+ def_node_matcher :nil_value_expectation?, <<~PATTERN
(send nil? :be nil)
PATTERN
def on_send(node)
case style