lib/rubocop/cop/rspec/rails/http_status.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/rails/http_status.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -33,9 +33,10 @@
class HttpStatus < Base
extend AutoCorrector
include ConfigurableEnforcedStyle
RESTRICT_ON_SEND = %i[have_http_status].freeze
+ # @!method http_status(node)
def_node_matcher :http_status, <<-PATTERN
(send nil? :have_http_status ${int sym})
PATTERN
def on_send(node)