From 2b2a4dfcbb96db293b51b5cb4ad818f7d6b0bcc7 Mon Sep 17 00:00:00 2001 From: Khoa Pham Date: Thu, 14 Sep 2017 15:00:41 +0200 Subject: [PATCH] Use rethrows --- Tests/Shared/TestCase+Extensions.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Shared/TestCase+Extensions.swift b/Tests/Shared/TestCase+Extensions.swift index a6daa47..bb30b1e 100644 --- a/Tests/Shared/TestCase+Extensions.swift +++ b/Tests/Shared/TestCase+Extensions.swift @@ -1,15 +1,15 @@ import XCTest extension XCTestCase { - func given(_ description: String, closure: () throws -> Void) throws { + func given(_ description: String, closure: () throws -> Void) rethrows { try closure() } - func when(_ description: String, closure: () throws -> Void) throws { + func when(_ description: String, closure: () throws -> Void) rethrows { try closure() } - func then(_ description: String, closure: () throws -> Void) throws { + func then(_ description: String, closure: () throws -> Void) rethrows { try closure() } }