Skip to content

Instantly share code, notes, and snippets.

@ktanaka117
Created May 17, 2018 15:56
Show Gist options
  • Save ktanaka117/7131745cf9284ff9c1353decc7464900 to your computer and use it in GitHub Desktop.
Save ktanaka117/7131745cf9284ff9c1353decc7464900 to your computer and use it in GitHub Desktop.
XCTContext.runActivityのラッパー #CodePiece
func context(named: String, block: (XCTActivity) throws -> (XCTWaiter.Result)) rethrows {
_ = try XCTContext.runActivity(named: named, block: block)
}
class FavoriteListDataStoreTests: XCTestCase {
func testSaveFavoriteList() {
context(named: "") { activity -> XCTWaiter.Result in
return .completed
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment