sevencop 0.24.3 → 0.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/default.yml +1 -1
- data/lib/rubocop/cop/sevencop/rspec_describe_http_endpoint.rb +6 -2
- data/lib/sevencop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9088cb86686701cb1c115190aeff24d1e4828ff5db228981edbcfbd0303b941
|
|
4
|
+
data.tar.gz: a1ae55865f74bd7e4707be7df3d53964c622c048484f4e679e90fc7604383456
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a871f2e1ce6a83aa0e78a77f2445f73fffb33c4019fbb99f91cfc9bd717ad9fd46548322de8816dcc745113a1304bc0024ecacf28629a745e93612d1286f3d58
|
|
7
|
+
data.tar.gz: 58765fd6530c476d4a3c411cce6373c3f9f42b804e4b91a6f5e6ac43fbb923ade08e538ccdf27c3d2b94da24a43feb33392e94841e25a33ac2e65e5f11d3017d
|
data/Gemfile.lock
CHANGED
data/config/default.yml
CHANGED
|
@@ -128,7 +128,7 @@ Sevencop/RequireOrdered:
|
|
|
128
128
|
|
|
129
129
|
Sevencop/RSpecDescribeHttpEndpoint:
|
|
130
130
|
Description: |
|
|
131
|
-
Pass HTTP endpoint identifier to top-level `describe` on request-specs.
|
|
131
|
+
Pass HTTP endpoint identifier (e.g. `GET /users`) to top-level `describe` on request-specs.
|
|
132
132
|
Enabled: false
|
|
133
133
|
VersionAdded: '0.18'
|
|
134
134
|
Include:
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
module RuboCop
|
|
4
4
|
module Cop
|
|
5
5
|
module Sevencop
|
|
6
|
-
# Pass HTTP endpoint identifier to top-level `describe` on request-specs.
|
|
6
|
+
# Pass HTTP endpoint identifier (e.g. `GET /users`) to top-level `describe` on request-specs.
|
|
7
|
+
#
|
|
8
|
+
# In request-specs, one should be aware that it is a test type for endpoints at HTTP layer.
|
|
9
|
+
# Therefore it is good practice to put the HTTP method and path in the top-level description
|
|
10
|
+
# and to separate examples groups by each endpoint.
|
|
7
11
|
#
|
|
8
12
|
# @see https://github.com/r7kamura/rspec-request_describer
|
|
9
13
|
#
|
|
@@ -14,7 +18,7 @@ module RuboCop
|
|
|
14
18
|
# # good
|
|
15
19
|
# RSpec.describe 'GET /users'
|
|
16
20
|
class RSpecDescribeHttpEndpoint < Base
|
|
17
|
-
MSG = 'Pass HTTP endpoint identifier to top-level `describe` on request-specs.'
|
|
21
|
+
MSG = 'Pass HTTP endpoint identifier (e.g. `GET /users`) to top-level `describe` on request-specs.'
|
|
18
22
|
|
|
19
23
|
RESTRICT_ON_SEND = %i[
|
|
20
24
|
describe
|
data/lib/sevencop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sevencop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.24.
|
|
4
|
+
version: 0.24.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10-
|
|
11
|
+
date: 2022-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|