rubocop-govuk 5.0.0 → 5.0.1
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/CHANGELOG.md +4 -0
- data/config/rspec.yml +8 -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: 824555d567b213339394a8d5bc23a889725feeb2ec8c4bf428b76ebb68178309
|
4
|
+
data.tar.gz: e3f939d1ded4cca2e351a817a5da5e7231faf31d35d14f05e1d8dc53505a96d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|