lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -15,11 +15,10 @@
def check_inflected(node)
predicate_in_actual?(node) do |predicate|
add_offense(
node,
- location: :expression,
message: message_inflected(predicate)
)
end
end
@@ -141,11 +140,10 @@
def check_explicit(node) # rubocop:disable Metrics/MethodLength
predicate_matcher_block?(node) do |_actual, matcher|
add_offense(
node,
- location: :expression,
message: message_explicit(matcher)
)
ignore_node(node.children.first)
return
end
@@ -153,10 +151,9 @@
return if part_of_ignored_node?(node)
predicate_matcher?(node) do |_actual, matcher|
add_offense(
node,
- location: :expression,
message: message_explicit(matcher)
)
end
end