stubOffline method
Stubs the offline short-circuit, for testing no-connection paths.
Implementation
void stubOffline(HttpMethod method, String endpoint) {
stub(method, endpoint, left(ErrorSource.noInternetConnection.getFailure()));
}
Stubs the offline short-circuit, for testing no-connection paths.
void stubOffline(HttpMethod method, String endpoint) {
stub(method, endpoint, left(ErrorSource.noInternetConnection.getFailure()));
}