Last active
May 5, 2018 03:48
-
-
Save dineshba/0dfee3c8f860f019aa782141ad70e2a9 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 | |
mockAPIService.error = APIError.permissionDenied | |
// When | |
sut.initFetch() | |
// 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