sevencop 0.24.2 → 0.24.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47139f7d9fb3b1e73416958e9f2f87ccafa4145864e046a1539ffd33018bd603
4
- data.tar.gz: f9c759a3adbbf7e25b327755c8d5fc0a00d5f6438f79b4df3e33d138ca296fb7
3
+ metadata.gz: e9088cb86686701cb1c115190aeff24d1e4828ff5db228981edbcfbd0303b941
4
+ data.tar.gz: a1ae55865f74bd7e4707be7df3d53964c622c048484f4e679e90fc7604383456
5
5
  SHA512:
6
- metadata.gz: e43613b26de17bca55c264a4892a3c20684fcc5c6e285c2407249c6369218d82650bdfb0e8963fd43c19c25a5fe24d885c4074894c8bc28fc105a0ba2dbfbb6e
7
- data.tar.gz: 4697e89105ef1bcd388a72af2505d3b1d19ea5fa0f1c3867d3fca0313d0c470d38b92eb89fa477e6782fbd83dff3e32300cfd812b67dd06b472fd6747480b10a
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.2)
4
+ sevencop (0.24.4)
5
5
  activesupport
6
6
  rubocop
7
7
 
data/config/default.yml CHANGED
@@ -5,7 +5,7 @@ Sevencop/AutoloadOrdered:
5
5
  Safe: false
6
6
  VersionAdded: '0.12'
7
7
 
8
- Sevencop/FactoryBotAssociationOptions:
8
+ Sevencop/FactoryBotAssociationOption:
9
9
  Description: |
10
10
  Remove redundant options from FactoryBot associations.
11
11
  Enabled: false
@@ -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.2'
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.2
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-23 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