Created
November 13, 2017 03:26
-
-
Save koromiko/37d772b81c62bae16c82bb13b9ed0f7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func test_fetch_photo_fail() { | |
// Given a failed fetch with a certain failure | |
let error = APIError.permissionDenied | |
// When | |
sut.initFetch() | |
mockAPIService.fetchFail(error: error ) | |
// Sut should display predefined error message | |
XCTAssertEqual( sut.alertMessage, error.rawValue ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment