test_bench-fixture 2.1.0.0.pre2 → 2.1.0.0.pre3
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/lib/test_bench/fixture/fixture.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 033b9c9ab58eb174ef49322146024b3640cfba35b27672754c7623203c709c3f
|
4
|
+
data.tar.gz: e645b143f4f318e9d53a28ac74d288c00662d18ac1b0fc16e6992262b16d0942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f65c7d27720fd5435f19cd220855ef91f752741f01637990dd5defe7b0c9c17c40f8b6ae2c89846be17120d59b1feb3e94c8f1bcb7897be417cd7d1f38a1551
|
7
|
+
data.tar.gz: 99def3195142901325d0145f070c14d00138b7db79c5ef458c3a2e9f127ec0fb68b1366db2fed888247f9f1852bf903ef63336a60e5c789b40852786265ac8c2
|
@@ -104,18 +104,26 @@ module TestBench
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def context(title=nil, &block)
|
107
|
+
title = title&.to_str
|
108
|
+
|
107
109
|
test_session.context(title, &block)
|
108
110
|
end
|
109
111
|
|
110
112
|
def context!(title=nil, &block)
|
113
|
+
title = title&.to_str
|
114
|
+
|
111
115
|
test_session.context!(title, &block)
|
112
116
|
end
|
113
117
|
|
114
118
|
def test(title=nil, &block)
|
119
|
+
title = title&.to_str
|
120
|
+
|
115
121
|
test_session.test(title, &block)
|
116
122
|
end
|
117
123
|
|
118
124
|
def test!(title=nil, &block)
|
125
|
+
title = title&.to_str
|
126
|
+
|
119
127
|
test_session.test!(title, &block)
|
120
128
|
end
|
121
129
|
|
@@ -132,6 +140,10 @@ module TestBench
|
|
132
140
|
def self.comment(telemetry, event_class, text, *additional_texts, heading: nil, quote: nil)
|
133
141
|
texts = [text, *additional_texts]
|
134
142
|
|
143
|
+
texts.map! do |text|
|
144
|
+
text.to_str
|
145
|
+
end
|
146
|
+
|
135
147
|
if quote.nil?
|
136
148
|
quote = texts.last.end_with?("\n")
|
137
149
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_bench-fixture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.0.
|
4
|
+
version: 2.1.0.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test_bench-session
|