lib/rubocop/cop/rspec/rails/http_status.rb in rubocop-rspec-1.29.1 vs lib/rubocop/cop/rspec/rails/http_status.rb in rubocop-rspec-1.30.0
- old
+ new
@@ -39,9 +39,10 @@
def on_send(node)
http_status(node) do |ast_node|
checker = checker_class.new(ast_node)
return unless checker.offensive?
+
add_offense(checker.node, message: checker.message)
end
end
def autocorrect(node)