test_bench-session 2.1.1.0 → 2.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_bench/session/substitute/sink.rb +11 -3
- 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: d51046e8f9923532aee42c79de710827e43cba6552f30e546e6b25f9651b44bb
|
4
|
+
data.tar.gz: e0a322b16015b834a69ac0e3d527762ad1d460c5402342fd2fcc85f19f7c9f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be667ff48eaedd33aeb50bf6831ac1403773ce9338919c628b79392406ab43100622a64e5a3177439f3d57f675fd871695fb94a03a5f55ffdee06531544206fc
|
7
|
+
data.tar.gz: e41c5bbb84ea00532c6524ad8a1f55cc108c476a2aff4c6c92e2f7e14f45df8c7d746a1e15c4085fd38c98ef95e0e6890cd4b93879317404dc304d865b8249aa
|
@@ -21,10 +21,15 @@ module TestBench
|
|
21
21
|
case event_data.type
|
22
22
|
when :TestStarted, :ContextStarted
|
23
23
|
title, * = event_data.data
|
24
|
-
|
24
|
+
if not title.nil?
|
25
|
+
path.push(title)
|
26
|
+
end
|
27
|
+
|
25
28
|
when :TestFinished, :ContextFinished
|
26
29
|
title, * = event_data.data
|
27
|
-
|
30
|
+
if not title.nil?
|
31
|
+
path.pop(title)
|
32
|
+
end
|
28
33
|
end
|
29
34
|
|
30
35
|
record = Record.new(event_data)
|
@@ -33,7 +38,10 @@ module TestBench
|
|
33
38
|
case event_data.type
|
34
39
|
when :TestFinished, :ContextFinished
|
35
40
|
title, * = event_data.data
|
36
|
-
|
41
|
+
if not title.nil?
|
42
|
+
record.path.push(title)
|
43
|
+
end
|
44
|
+
|
37
45
|
when :Commented, :Detailed
|
38
46
|
comment_text, * = event_data.data
|
39
47
|
record.path.push(comment_text)
|