lib/rubocop/cop/rspec/mixin/skip_or_pending.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/mixin/skip_or_pending.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -6,11 +6,11 @@
# Helps check offenses with variable definitions
module SkipOrPending
extend RuboCop::NodePattern::Macros
# @!method skipped_in_metadata?(node)
- def_node_matcher :skipped_in_metadata?, <<-PATTERN
+ def_node_matcher :skipped_in_metadata?, <<~PATTERN
{
(send _ _ <(sym {:skip :pending}) ...>)
(send _ _ ... (hash <(pair (sym {:skip :pending}) { true str dstr }) ...>))
}
PATTERN
@@ -28,10 +28,10 @@
# skip 'not implemented yet'
# pending 'not implemented yet'
#
# @param node [RuboCop::AST::Node]
# @return [Array<RuboCop::AST::Node>] matching nodes
- def_node_matcher :skip_or_pending_inside_block?, <<-PATTERN
+ def_node_matcher :skip_or_pending_inside_block?, <<~PATTERN
(block <(send nil? {:skip :pending} ...) ...>)
PATTERN
end
end
end