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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91a0e6de1714c355df36a8ecbdf586d0e7ed8e8a69add35f1796585fd6a692a5
4
- data.tar.gz: 2b6e099daa560f05fd76e08e66eec82d7e20f1ab6e57dfc11da33dae43bc1076
3
+ metadata.gz: 509ee7976c81df936e353e92a930c869e6db34568e2bcc7651dc0c30c6818b09
4
+ data.tar.gz: b8f7bd4c851ccce292d3bed4b12c3fa8602625c2fa133335d83335081d8e028b
5
5
  SHA512:
6
- metadata.gz: 125804b3898b55625ed733434364f26de343dd6a9bd98fe45a2dcd465ab54efadeb792495102e0316dc3e5e5dc0e461440815fdbde1516fed7aa0e21900c9e0e
7
- data.tar.gz: ef573cdda0187ae4b43f3e097c891eefbe18e10b4dd2db8306ce70bc4312fb1681efea6680c5810a83609ac3e4ecff6937708b14cd6802ab42aa3018c7b26a36
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-session
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.4
4
+ version: 2.1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd