test_bench-fixture 1.2.2.1 → 1.2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4555b782d4916254da1a5cad74ae69b8bc10072f45fa89f0527ddba0a581cb2d
4
- data.tar.gz: 608f1985785f4664727093f86958ba3dff3ed0ead19234a473339f7dced32b78
3
+ metadata.gz: 13a777ff52df4352c49326e6b394828cd64eed0abfdf54a0a677bff3f3958737
4
+ data.tar.gz: ccaa7603572eec663dcf2638b5345af7c245ed0aaf137cac124a24e800775910
5
5
  SHA512:
6
- metadata.gz: 46b499e82c1fe3a8a4c5648c013a71d96fe4273734771f5d29ec092969faf051a618c221389f61ceed0500274d4490113d96351106c09ec5916378a07cb9cba7
7
- data.tar.gz: 26db4c70d4fa210b84ee592e1b8849a9b2622f7a56096844dfd5c85e77c035607cd481bdce1ac0072aaa59652bd4312d7ef3cff83e52ac97db35f20f13e943f0
6
+ metadata.gz: 4694182ab91a9e75de0f6c69c59bd027842989f075bb0787b15be6e2b4a092d4405943e3c91e1b7f242d1575132f9e3a268544809c201f16f817230d266aacee
7
+ data.tar.gz: edc04eee7d348c8e2ea6216200e17eea95c6beee183ce45346542452bbce7f8da6a8dd06d87a4f3213825f7c44694fd43b5469ccdb698c141fd94ae1e11e9612
@@ -214,12 +214,12 @@ module TestBench
214
214
  rescue => error
215
215
  error(error)
216
216
 
217
- ensure
218
- current_exception = $!
217
+ error = nil
219
218
 
219
+ ensure
220
220
  result = error_counter == previous_error_counter
221
221
 
222
- block.(result, current_exception) unless block.nil?
222
+ block.(result, error) unless block.nil?
223
223
  end
224
224
 
225
225
  result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-fixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2.1
4
+ version: 1.2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd