test_bench-bootstrap 6.0.0 → 6.1.1
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/bootstrap.rb +14 -5
- 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: 767df4583392029c9c3e454af34c912e19f5225cc643c988d2ea81b0fe0ea32c
|
4
|
+
data.tar.gz: 67b64b8a37af6c351600dd2ca3091eff995ba3e2c35ae7ee50772a4accdab207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80795f1e607dadb28337d300c6c02c7879a393c4ba8a41d6f8b640df54c2235ef36e9cabc1bc886df5e7bab90b0a70b0dcb05ba44e0db661c1bad5fd3b4482b9
|
7
|
+
data.tar.gz: 6300cbfab8047d96ded07e36227a2b6c1e787c67e017f44ad42ccee592e107231289666866f4efcfd6915274cb137f6eeb759826f2e0f544ffff74c75cd0aee1
|
data/lib/test_bench/bootstrap.rb
CHANGED
@@ -151,15 +151,19 @@ module TestBench
|
|
151
151
|
test(title)
|
152
152
|
end
|
153
153
|
|
154
|
-
def comment(
|
155
|
-
|
154
|
+
def comment(...)
|
155
|
+
detail(...)
|
156
156
|
end
|
157
157
|
|
158
158
|
def detail(detail, *additional_details, quote: nil, heading: nil)
|
159
159
|
details = [detail, *additional_details]
|
160
160
|
|
161
161
|
if quote.nil?
|
162
|
-
|
162
|
+
if additional_details == ['']
|
163
|
+
quote = true
|
164
|
+
else
|
165
|
+
quote = details.last.end_with?("\n")
|
166
|
+
end
|
163
167
|
end
|
164
168
|
|
165
169
|
if quote
|
@@ -174,14 +178,19 @@ module TestBench
|
|
174
178
|
end
|
175
179
|
|
176
180
|
details.each do |detail|
|
181
|
+
if detail.empty?
|
182
|
+
Output.indent("\e[2;3m(empty)\e[23;22m")
|
183
|
+
next
|
184
|
+
end
|
185
|
+
|
177
186
|
if quote
|
178
187
|
detail.each_line do |line|
|
179
188
|
line.chomp!
|
180
189
|
|
181
|
-
Output.indent("\e[2m
|
190
|
+
Output.indent("\e[2m> \e[22m#{line}")
|
182
191
|
end
|
183
192
|
else
|
184
|
-
Output.
|
193
|
+
Output.indent(detail)
|
185
194
|
end
|
186
195
|
end
|
187
196
|
end
|