lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-1.19.0
- old
+ new
@@ -24,16 +24,16 @@
$(...)
)
PATTERN
def_node_matcher :expectation?, <<-PATTERN
- (send (send nil :expect (lvar %)) :to ...)
+ (send (send nil? :expect (lvar %)) :to ...)
PATTERN
def on_block(node)
each?(node) do |arg, body|
if single_expectation?(body, arg) || only_expectations?(body, arg)
- add_offense(node.children.first, :expression)
+ add_offense(node.children.first, location: :expression)
end
end
end
private