lib/rubocop/cop/rspec/rails/http_status.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/rails/http_status.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -31,9 +31,10 @@
# it { is_expected.to have_http_status :error }
#
class HttpStatus < Base
extend AutoCorrector
include ConfigurableEnforcedStyle
+ RESTRICT_ON_SEND = %i[have_http_status].freeze
def_node_matcher :http_status, <<-PATTERN
(send nil? :have_http_status ${int sym})
PATTERN