rubocop-rspec_parity 1.4.5 → 1.4.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce7a1961eafacef8055e79414d28cfd37157f3d56aa8317befaa6e03ec8e1351
|
|
4
|
+
data.tar.gz: 3dc54f2de9deb5a2b5636d87aa2e0faabf625e62c4ab7540958f85ef92771868
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56b3b3a5dd71d2360779382c0f4e8661c8c84097eacff2a76c9c4c8a53f3d1f1d0487f5e00f391923437c01ee72a7b7092ef8c6ccd74562aa0cf413138ea5498
|
|
7
|
+
data.tar.gz: 262cf615d136461f78253e2412cfb16f4aa270793c36789d7f4494071d95a0908a58f745983d842cdcb19d9ce1b9f054e3471c76ec919e1f1d7f567f3f08a53f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.4.6] - 2026-04-10
|
|
4
|
+
|
|
5
|
+
Fixed: Method name matching no longer falsely matches substring occurrences in unrelated context descriptions
|
|
6
|
+
|
|
3
7
|
## [1.4.5] - 2026-03-27
|
|
4
8
|
|
|
5
9
|
Added: Allow both `#method` and `.method` notation in specs for modules using `extend self`, `module_function`, or `module_function :method_name`
|
|
@@ -288,7 +288,7 @@ module RuboCop
|
|
|
288
288
|
[
|
|
289
289
|
/describe\s+['"]#{escaped_prefix}#{escaped_name}['"]/,
|
|
290
290
|
/context\s+['"]#{escaped_prefix}#{escaped_name}['"]/,
|
|
291
|
-
/it\s+['"](tests?|checks?|verifies?|validates?)\s+#{escaped_name}/i,
|
|
291
|
+
/it\s+['"](tests?|checks?|verifies?|validates?)\s+#{escaped_name}(?!\w)/i,
|
|
292
292
|
/describe\s+['"]#{escaped_name}['"]/
|
|
293
293
|
]
|
|
294
294
|
end
|
|
@@ -259,11 +259,11 @@ module RuboCop
|
|
|
259
259
|
|
|
260
260
|
def matches_method_describe?(line, method_pattern)
|
|
261
261
|
line =~ /^\s*describe\s+['"](?:#|\.)?#{method_pattern}['"]/ ||
|
|
262
|
-
line =~ /^\s*describe\s+:#{method_pattern}/
|
|
262
|
+
line =~ /^\s*describe\s+:#{method_pattern}(?!\w)/
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
def matches_context_pattern?(line, method_pattern)
|
|
266
|
-
line =~ /^\s*(?:context|describe)\s
|
|
266
|
+
line =~ /^\s*(?:context|describe)\s+['"](?:#|\.)?#{method_pattern}(?:\s|['"])/
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
def nested_context?(line)
|