test_bench-bootstrap 4.0.1 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/test_bench/bootstrap.rb +9 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd267192ab849cfd01355201251e06a7a04b967a9738d28b458bb29b99bce080
4
- data.tar.gz: b8d64331eda79e450faddfd50b1b80e76b8570e549aa8d32f62b543a16a47532
3
+ metadata.gz: 034501d841e885c9b6b23e6ffbfad13500c462e2ccfc8e857c7ae20159addef1
4
+ data.tar.gz: 67d1d9f66753ef560aae204c47213a0637dd7033679354cdf51bd2e8463865bd
5
5
  SHA512:
6
- metadata.gz: d28ec437fbfd2cfe6a02318a8887590400343f3f5589f00001196a312f1577ecf937cbfefb83d297a92f34057882a046f2374e399f2e228aef3306c3742f7f91
7
- data.tar.gz: 857c18b0168eda3fd9900931081ec96641d89ff1ea298bd5e4aca1741d2139699c5ba434d70a6ea43618d13bf8e6605fd1ef7ff3861d89e385ffb12a40f9669f
6
+ metadata.gz: 268bfa7119bcbac364c84b9079bb008ef7e7a8f51a04b61e25d280a293e2b77cece5026c88a56944758116e4091dd726676855e7da27c865d402e053f78eefe4
7
+ data.tar.gz: 6ed3766f69809dc07fa376f3fd06c7cced6c7b6b2fcd5d9aa519dbd7a89049f00e1affa1a831e9e429a1eff59936abcbead64d6eaabcb34bdc9935e950eb7cfe
@@ -122,6 +122,7 @@ module TestBench
122
122
 
123
123
  block.()
124
124
  end
125
+ alias_method :context!, :context
125
126
 
126
127
  def _context(title=nil, &block)
127
128
  context(title)
@@ -144,17 +145,22 @@ module TestBench
144
145
  raise error
145
146
  end
146
147
  end
148
+ alias_method :test!, :test
147
149
 
148
150
  def _test(title=nil, &block)
149
151
  test(title)
150
152
  end
151
153
 
152
- def comment(text)
154
+ def comment(text, *additional_lines)
153
155
  Output.write(text)
156
+
157
+ additional_lines.each do |line|
158
+ comment(line.chomp)
159
+ end
154
160
  end
155
161
 
156
- def detail(text)
157
- comment(text)
162
+ def detail(...)
163
+ comment(...)
158
164
  end
159
165
 
160
166
  def fixture(cls, *args, **kwargs, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-11-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: nathanladd+github@gmail.com
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
- rubygems_version: 3.3.4
39
+ rubygems_version: 3.3.23
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: A minimal test framework for testing TestBench