test_bench-fixture 1.3.0.0 → 1.3.0.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/fixture/session.rb +9 -6
- 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: 439b3f623746bdb26d4d9e5a30ee5abd7283b829e04383c4240aa175ec4b07e7
|
4
|
+
data.tar.gz: 73abed890d2945a1854c54ac338b46ec846d8ba5b8c5bdd70d2f7f1a54110680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd516904ef461a2fe872abdef28b9f5ced3cd8e8e68608d59f8e182a2c1a37ef27f36f365e7edbf5f7f1dea9b06a349fde016829648147c5d2f2414647a670a9
|
7
|
+
data.tar.gz: 4d07e52f97d8913db429c665d1dffa709174340086cc4827ab3be365ae984198b25d3c7e64112def9c9b961190d44d1fa039f0aa1d41d58bf78d7f584b14cf94
|
@@ -135,13 +135,15 @@ module TestBench
|
|
135
135
|
def load(path)
|
136
136
|
output.enter_file(path)
|
137
137
|
|
138
|
-
|
138
|
+
result = false
|
139
139
|
|
140
|
-
|
140
|
+
Kernel.load(path)
|
141
141
|
|
142
|
-
|
142
|
+
result = true
|
143
143
|
|
144
|
-
|
144
|
+
ensure
|
145
|
+
|
146
|
+
output.exit_file(path, result)
|
145
147
|
end
|
146
148
|
|
147
149
|
def test(title=nil, &block)
|
@@ -198,9 +200,10 @@ module TestBench
|
|
198
200
|
output.start_fixture(fixture)
|
199
201
|
|
200
202
|
action = proc { actions.each(&:call) }
|
201
|
-
result = evaluate(action)
|
202
203
|
|
203
|
-
|
204
|
+
result = evaluate(action) do |result|
|
205
|
+
output.finish_fixture(fixture, result)
|
206
|
+
end
|
204
207
|
|
205
208
|
result
|
206
209
|
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: 1.3.0.
|
4
|
+
version: 1.3.0.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: 2020-08-
|
11
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test_bench-bootstrap
|