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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2de685c5ac228ea5d73a3e69cc4440d6f101f4defd72e6b2a48eb472b79cf7c7
4
- data.tar.gz: 99f300aba16238c5ec418dcae77d787dee4c7c5b8eaba4231b5515e84e66881e
3
+ metadata.gz: e9088cb86686701cb1c115190aeff24d1e4828ff5db228981edbcfbd0303b941
4
+ data.tar.gz: a1ae55865f74bd7e4707be7df3d53964c622c048484f4e679e90fc7604383456
5
5
  SHA512:
6
- metadata.gz: eb3ee7eedc5dcb05edb4ef88ead51db016ad9ca6e8e552c610b63285cb6b1de493bcec9b2951049253624f392949465eab8b0ddbda948c40a530171f041e1281
7
- data.tar.gz: cdb6c950a0264ccfb74aef21c03cc3a200365b0de3fc3dca785ef79ab781d70cae40d49182ca842e5a41e5d95ae6e48dc429a79c9864d56ee7906cb937cb83a4
6
+ metadata.gz: a871f2e1ce6a83aa0e78a77f2445f73fffb33c4019fbb99f91cfc9bd717ad9fd46548322de8816dcc745113a1304bc0024ecacf28629a745e93612d1286f3d58
7
+ data.tar.gz: 58765fd6530c476d4a3c411cce6373c3f9f42b804e4b91a6f5e6ac43fbb923ade08e538ccdf27c3d2b94da24a43feb33392e94841e25a33ac2e65e5f11d3017d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sevencop (0.24.3)
4
+ sevencop (0.24.4)
5
5
  activesupport
6
6
  rubocop
7
7
 
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sevencop
4
- VERSION = '0.24.3'
4
+ VERSION = '0.24.4'
5
5
  end
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.3
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-24 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport