test_bench-session 2.1.1.4 → 2.1.1.5
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/session.rb +23 -0
- 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: 509ee7976c81df936e353e92a930c869e6db34568e2bcc7651dc0c30c6818b09
|
4
|
+
data.tar.gz: b8f7bd4c851ccce292d3bed4b12c3fa8602625c2fa133335d83335081d8e028b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84606681c2be4ddd3d6e3b2ffc0c1d64eb6c0008ef79951f665658638cd7c77d5cb87d28f97450e038744a6f245d799702182ea7bb61fd095054fd95a12dd0d4
|
7
|
+
data.tar.gz: e0ba1f400894a1ccc98f61ee401fed5ec77351aa8cc761e67ffe1bddab9b56c98758053c1514ccbeee54fdf33ca9b4589802b8639f30176c2c72d4fdfdacad25
|
@@ -43,6 +43,29 @@ module TestBench
|
|
43
43
|
receiver.public_send(:"#{attr_name}=", instance)
|
44
44
|
end
|
45
45
|
|
46
|
+
def inspect
|
47
|
+
text = self.to_s
|
48
|
+
|
49
|
+
instance_variables = self.instance_variables - [:@telemetry]
|
50
|
+
|
51
|
+
instance_variables.each_with_index do |name, index|
|
52
|
+
ivar_text = String.new
|
53
|
+
|
54
|
+
if index > 0
|
55
|
+
ivar_text << ','
|
56
|
+
end
|
57
|
+
|
58
|
+
value = instance_variable_get(name)
|
59
|
+
value = value.inspect
|
60
|
+
|
61
|
+
ivar_text << " #{name}=#{value}"
|
62
|
+
|
63
|
+
text.insert(-2, ivar_text)
|
64
|
+
end
|
65
|
+
|
66
|
+
text
|
67
|
+
end
|
68
|
+
|
46
69
|
def passed?
|
47
70
|
asserted? && !failed? && !skipped?
|
48
71
|
end
|