lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-1.21.0 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-1.22.0

- old
+ new

@@ -24,11 +24,11 @@ # describe UserCreator do # it 'sets the users name' do # expect(user.name).to eq("John") # end # - # it 'sets the users age' + # it 'sets the users age' do # expect(user.age).to eq(22) # end # end # # @example configuration @@ -94,13 +94,11 @@ find_expectation(child, &block) end end def flag_example(node, expectation_count:) - method, = *node - add_offense( - method, + node.send_node, location: :expression, message: format( MSG, total: expectation_count, max: max_expectations