rubocop-govuk 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/config/rspec.yml +8 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36280cc4a712f00b506c05b517ae5ecb27ed67718482fcc2098d797a6053c2b4
4
- data.tar.gz: d9382b62d850b2cdd0ec81374cadbf55f2e8935fdd17a47f3b0df1bac7222d4b
3
+ metadata.gz: 824555d567b213339394a8d5bc23a889725feeb2ec8c4bf428b76ebb68178309
4
+ data.tar.gz: e3f939d1ded4cca2e351a817a5da5e7231faf31d35d14f05e1d8dc53505a96d0
5
5
  SHA512:
6
- metadata.gz: 294c80aab2363a31be819c2b0ac5f457d3f8c776a362521a85954f07c6278ee2f5b2283ca7873aa93195f359e166515d53f0639684b824e0f708ab871be139c3
7
- data.tar.gz: e9dc1b072785b2020deb429510d02adfe61a3557855412288926bcacd7068b57666f264665304ef9cf5989d0269004c578f2a47ac2fe27ca14595b4d4e20f95e
6
+ metadata.gz: c11875c6f8e2228cde75da718bc4c139afce2e4ef53630a8f7d673223f6e3df5d65b846f788538da8a3274cfb011f8332d00e3e56909719c9f59a8aff7777643
7
+ data.tar.gz: 577db2c2752456ba2eb71d61b7687bec7954a7280bc325bc3245bd5916697419f3c3cb7dfcbc431b94cdf3c95d3ab6bad70641fd92e86b4bec344013fc44c8d4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 5.0.1
2
+
3
+ - Disable RSpec/NoExpectationExample for feature and system specs as it false triggers.
4
+
1
5
  # 5.0.0
2
6
 
3
7
  - BREAKING: Update rubocop-rspec to 3.0 which enables by default previously pending cops. See [rubocop-rspec's changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md#300-2024-06-11) for details.
data/config/rspec.yml CHANGED
@@ -31,6 +31,13 @@ RSpec/InstanceVariable:
31
31
  - 'spec/features/**/*.rb'
32
32
  - 'spec/system/**/*.rb'
33
33
 
34
+ # The GOV.UK Feature spec style has expectations in method calls so this
35
+ # cop falsely triggers.
36
+ RSpec/NoExpectationExample:
37
+ Exclude:
38
+ - 'spec/features/**/*.rb'
39
+ - 'spec/system/**/*.rb'
40
+
34
41
  # In GOV.UK we quite often test that a class received a method.
35
42
  RSpec/MessageSpies:
36
43
  Enabled: false
@@ -56,7 +63,7 @@ RSpec/ContextWording:
56
63
  # scenario.
57
64
  # We don't want this cop outside of feature or system specs though.
58
65
  RSpec/Dialect:
59
- # Disables all Capybara-specific methods that have the same native
66
+ # Disables all Capybara-specific methods that have the same native
60
67
  # RSpec method (e.g. are just aliases)
61
68
  PreferredMethods:
62
69
  background: :before
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake