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.
- checksums.yaml +4 -4
- data/lib/test_bench/bootstrap.rb +9 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 034501d841e885c9b6b23e6ffbfad13500c462e2ccfc8e857c7ae20159addef1
|
4
|
+
data.tar.gz: 67d1d9f66753ef560aae204c47213a0637dd7033679354cdf51bd2e8463865bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 268bfa7119bcbac364c84b9079bb008ef7e7a8f51a04b61e25d280a293e2b77cece5026c88a56944758116e4091dd726676855e7da27c865d402e053f78eefe4
|
7
|
+
data.tar.gz: 6ed3766f69809dc07fa376f3fd06c7cced6c7b6b2fcd5d9aa519dbd7a89049f00e1affa1a831e9e429a1eff59936abcbead64d6eaabcb34bdc9935e950eb7cfe
|
data/lib/test_bench/bootstrap.rb
CHANGED
@@ -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(
|
157
|
-
comment(
|
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.
|
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-
|
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.
|
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
|