File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
lib/rubocop/cop/rspec_rails Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 57
57
58
58
Checks that tests use `have_http_status` instead of equality matchers.
59
59
60
+ [#safety-rspecrailshavehttpstatus]
61
+ === Safety
62
+
63
+ The autocorrection is marked as unsafe because
64
+ `response.status` response is not always an HTTP response.
65
+
60
66
[#examples-rspecrailshavehttpstatus]
61
67
=== Examples
62
68
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ module Cop
5
5
module RSpecRails
6
6
# Checks that tests use `have_http_status` instead of equality matchers.
7
7
#
8
+ # @safety
9
+ # The autocorrection is marked as unsafe because
10
+ # `response.status` response is not always an HTTP response.
11
+ #
8
12
# @example ResponseMethods: ['response', 'last_response'] (default)
9
13
# # bad
10
14
# expect(response.status).to be(200)
You can’t perform that action at this time.
0 commit comments