test_bench-fixture 1.3.0.0 → 1.3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94d72f2d00cb5ba026c616661faa24565ab70cd91213e4ecfb3ca9c981ad49a3
4
- data.tar.gz: babd50bac0a5c05c070ea38de7b42e48daa2a15230dc164a16a935ad924640c5
3
+ metadata.gz: 439b3f623746bdb26d4d9e5a30ee5abd7283b829e04383c4240aa175ec4b07e7
4
+ data.tar.gz: 73abed890d2945a1854c54ac338b46ec846d8ba5b8c5bdd70d2f7f1a54110680
5
5
  SHA512:
6
- metadata.gz: 87ba393d75101f74c03fa8ff9aae87b6e5b3c4a5741b60be1d3661b3e604d9cdd0de36f54c4c05ca5599cb7961484b69279b8801a3d010990758d8c2fcb7c8bd
7
- data.tar.gz: d3ca9bd2c20c31a37b831025b00aba88a5a130e25a67f2fd733dc0b17df7b1f865fcf92dc16b77c13683742140534e587f439c580e590eac7a988eca5e29db9b
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
- action = proc { Kernel.load(path) }
138
+ result = false
139
139
 
140
- result = evaluate(action)
140
+ Kernel.load(path)
141
141
 
142
- output.exit_file(path, result)
142
+ result = true
143
143
 
144
- result
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
- output.finish_fixture(fixture, result)
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.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 00:00:00.000000000 Z
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