lib/rubocop/cop/rspec/invalid_predicate_matcher.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/invalid_predicate_matcher.rb in rubocop-rspec-1.19.0

- old
+ new

@@ -15,15 +15,15 @@ # expect(foo).to be_something class InvalidPredicateMatcher < Cop MSG = 'Omit `?` from `%<matcher>s`.'.freeze def_node_matcher :invalid_predicate_matcher?, <<-PATTERN - (send (send nil :expect ...) {:to :not_to :to_not} $(send nil #predicate?)) + (send (send nil? :expect ...) {:to :not_to :to_not} $(send nil? #predicate?)) PATTERN def on_send(node) invalid_predicate_matcher?(node) do |predicate| - add_offense(predicate, :expression) + add_offense(predicate, location: :expression) end end private