test_bench-bootstrap 4.0.0 → 4.0.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 +12 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc965093b2dc0c70333aafb0c18143768a68ab13217930d7860a5e613920622d
4
- data.tar.gz: d949906c02222df28b64b59cfc2e66e77104c673084ab65b0041ecf37772e524
3
+ metadata.gz: fd267192ab849cfd01355201251e06a7a04b967a9738d28b458bb29b99bce080
4
+ data.tar.gz: b8d64331eda79e450faddfd50b1b80e76b8570e549aa8d32f62b543a16a47532
5
5
  SHA512:
6
- metadata.gz: ce599074b28ff8ec821a3e7b1e2cf613c487730bb030975bb0e1bd6ccea4328fd70a65adc7cef80b81366254479d8368e196926035fee0f8434a85eaad0868d7
7
- data.tar.gz: c20d7770dddc587baa8dd5608aa4469cd69a8512c61586f95d9dbea49c6817cb9347221f0e81a0c9bbd91a81e6fcde04a1132dbd12291e9969fcea21c830a01d
6
+ metadata.gz: d28ec437fbfd2cfe6a02318a8887590400343f3f5589f00001196a312f1577ecf937cbfefb83d297a92f34057882a046f2374e399f2e228aef3306c3742f7f91
7
+ data.tar.gz: 857c18b0168eda3fd9900931081ec96641d89ff1ea298bd5e4aca1741d2139699c5ba434d70a6ea43618d13bf8e6605fd1ef7ff3861d89e385ffb12a40f9669f
@@ -107,14 +107,14 @@ module TestBench
107
107
  raise AssertionFailure.build(1)
108
108
  end
109
109
 
110
- def context(prose=nil, &block)
110
+ def context(title=nil, &block)
111
111
  if block.nil?
112
- Output.write(prose || 'Context', sgr_code: 0x33)
112
+ Output.write(title || 'Context', sgr_code: 0x33)
113
113
  return
114
114
  end
115
115
 
116
- unless prose.nil?
117
- Output.indent(prose, sgr_code: 0x32) do
116
+ unless title.nil?
117
+ Output.indent(title, sgr_code: 0x32) do
118
118
  context(&block)
119
119
  end
120
120
  return
@@ -123,30 +123,30 @@ module TestBench
123
123
  block.()
124
124
  end
125
125
 
126
- def _context(prose=nil, &block)
127
- context(prose)
126
+ def _context(title=nil, &block)
127
+ context(title)
128
128
  end
129
129
 
130
- def test(prose=nil, &block)
130
+ def test(title=nil, &block)
131
131
  if block.nil?
132
- Output.write(prose || 'Test', sgr_code: 0x33)
132
+ Output.write(title || 'Test', sgr_code: 0x33)
133
133
  return
134
134
  end
135
135
 
136
136
  begin
137
137
  block.()
138
138
 
139
- Output.indent(prose, sgr_code: 0x32)
139
+ Output.indent(title, sgr_code: 0x32)
140
140
 
141
141
  rescue => error
142
- Output.indent(prose, sgr_codes: [0x1, 0x31])
142
+ Output.indent(title || 'Test', sgr_codes: [0x1, 0x31])
143
143
 
144
144
  raise error
145
145
  end
146
146
  end
147
147
 
148
- def _test(prose=nil, &block)
149
- test(prose)
148
+ def _test(title=nil, &block)
149
+ test(title)
150
150
  end
151
151
 
152
152
  def comment(text)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd