test_bench-session 3.0.0.0.pre.5 → 3.0.0.0.pre.6
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 +4 -4
- data/lib/test_bench/session/session.rb +17 -19
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e65cd9a3f0b2d095a7434c2cb0943e152e08e4388e684f1e0861980618aefa44
|
4
|
+
data.tar.gz: 2aff239b26fed7ab1bd65a9e122d5d20113df72f0dbdafd0d589cb00d5582b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d0604043f76f0a683e2681247523516957a2f33ed8269854c93b5d881a97df83fa9a48182ed0569d427bbb3a58db1d80eb579e6b8a965f371f7318e84d384c
|
7
|
+
data.tar.gz: e6b9b69780523032373507ca96b140dde6df79cb1b893eeb907a89934252334d15909ef24c7f0d6e592610320f1990d5d95161c4463cab94a706402d818fd331
|
@@ -204,34 +204,32 @@ module TestBench
|
|
204
204
|
|
205
205
|
catch(ExecutionBreak) do
|
206
206
|
block.(self)
|
207
|
-
end
|
208
|
-
|
209
|
-
rescue Failure => failure
|
210
|
-
message = failure.message
|
211
|
-
record_event(Events::Failed.build(message))
|
212
207
|
|
213
|
-
|
214
|
-
|
208
|
+
rescue Failure => failure
|
209
|
+
message = failure.message
|
210
|
+
record_event(Events::Failed.build(message))
|
215
211
|
|
216
|
-
|
217
|
-
|
212
|
+
rescue ::Exception => exception
|
213
|
+
aborted_recorded = status.error_sequence > previous_status.error_sequence
|
218
214
|
|
219
|
-
|
215
|
+
if not aborted_recorded
|
216
|
+
location = format_backtrace.(exception)
|
220
217
|
|
221
|
-
|
222
|
-
end
|
218
|
+
message = exception.detailed_message
|
223
219
|
|
224
|
-
|
220
|
+
record_event(Events::Aborted.build(message, location))
|
221
|
+
end
|
225
222
|
|
226
|
-
|
227
|
-
result = status.result(previous_status, pending_event)
|
223
|
+
raise exception
|
228
224
|
|
229
|
-
|
230
|
-
|
225
|
+
ensure
|
226
|
+
result = status.result(previous_status, pending_event)
|
231
227
|
|
232
|
-
|
233
|
-
|
228
|
+
pending_event.result = result
|
229
|
+
record_event(pending_event)
|
234
230
|
end
|
231
|
+
|
232
|
+
result
|
235
233
|
end
|
236
234
|
end
|
237
235
|
end
|