rspec-abq 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/abq/formatter.rb +2 -2
- data/lib/rspec/abq/manifest.rb +2 -1
- data/lib/rspec/abq/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: f88c2063493ad3b7115710c2fbd276bb4b08bf6f421804b1e667e617673963cd
|
4
|
+
data.tar.gz: 2feed437fb384a31d8d3bffdd3baa83a5aac9136198723a39b2fe6dc1a28dcea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b36a45217933dbd5a23064aef2562e298a84889bf219669de24a5e4702aebc8d0f056da4d791b823878b93af3b5982457b805d12778ce7842ee821c808cda07c
|
7
|
+
data.tar.gz: 9a0a403f7abed4e50fe4928bbd83449c36d6a206b7eedffb86bc19b8565a1c424fdf05d6ca8c685312f41e0ac29323c6b678f85f85212291b135ce053e6ef0a1
|
data/lib/rspec/abq/formatter.rb
CHANGED
@@ -44,8 +44,8 @@ module RSpec
|
|
44
44
|
file: example.metadata[:file_path],
|
45
45
|
line: example.metadata[:line_number]
|
46
46
|
},
|
47
|
-
started_at: execution_result.started_at.utc.iso8601,
|
48
|
-
finished_at: execution_result.finished_at.utc.iso8601,
|
47
|
+
started_at: execution_result.started_at.utc.iso8601(6), # anything higher-prescision just yielded 0s
|
48
|
+
finished_at: execution_result.finished_at.utc.iso8601(6),
|
49
49
|
lineage: RSpec::Core::Metadata.ascend(example.metadata).map { |meta| meta[:description] }.reverse
|
50
50
|
}
|
51
51
|
|
data/lib/rspec/abq/manifest.rb
CHANGED
@@ -27,7 +27,8 @@ module RSpec
|
|
27
27
|
# @!visibility private
|
28
28
|
def self.extract_metadata_and_tags(metadata)
|
29
29
|
# we use `.dup.reject! because `.reject` raises a warning (because it doesn't dup procs)`
|
30
|
-
user_metadata = metadata.dup
|
30
|
+
user_metadata = metadata.dup
|
31
|
+
user_metadata.reject! { |k, _v| RESERVED_METADATA_KEYS.include?(k) }
|
31
32
|
tags_array, metadata_array = user_metadata.partition { |_k, v| v == true }
|
32
33
|
[tags_array.map(&:first), metadata_array.to_h]
|
33
34
|
end
|
data/lib/rspec/abq/version.rb
CHANGED