rspec-turbo 0.1.4 → 0.1.5
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 +8 -0
- data/lib/rspec_turbo/batch_planner.rb +3 -1
- data/lib/rspec_turbo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 117edefa9bc6a59aacec81c4dd980e163491245fad030d8468062a40dd23625b
|
|
4
|
+
data.tar.gz: c7aa89a42fb179f1ff476deaa54512c162c647272ca84f82e982846821ebde85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd78bea6709d2cd4b8f3270834ba60571372d822614326bd4525d4be5c5556e0c27cca8306dd5668731c3fecffc4c5045e547aa9b5ae172961004a1847008e06
|
|
7
|
+
data.tar.gz: e9c097f3d8d33ec7b0c9c36abb5bd7902c0c09a2c12bb718c71359c98e55d9dcfc7d2b5790325cf8afc2d8314f6b4b8d80721e2eae0bd16653078bbf08da6580
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.5] - 2026-09-29
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Examples defined in `shared_examples` are now counted for the spec file that
|
|
7
|
+
includes them. The dry-run keyed examples by `file_path`, which RSpec sets to
|
|
8
|
+
the shared file, so those examples were missing from the file weights and
|
|
9
|
+
from the report total. The file now comes from the example id.
|
|
10
|
+
|
|
3
11
|
## [0.1.4] - 2026-09-29
|
|
4
12
|
|
|
5
13
|
### Fixed
|
|
@@ -81,8 +81,10 @@ module RSpecTurbo
|
|
|
81
81
|
counts = Hash.new(0)
|
|
82
82
|
ids = Hash.new { |hash, key| hash[key] = [] }
|
|
83
83
|
|
|
84
|
+
# Key by the file in the example id, not `file_path`: examples from
|
|
85
|
+
# shared_examples report the shared file as their `file_path`.
|
|
84
86
|
parsed["examples"].each do |example|
|
|
85
|
-
file = example["
|
|
87
|
+
file = example["id"].sub(/\[[\d:]+\]\z/, "").delete_prefix("./spec/")
|
|
86
88
|
counts[file] += 1
|
|
87
89
|
ids[file] << example["id"]
|
|
88
90
|
end
|
data/lib/rspec_turbo/version.rb
CHANGED