stubOffline method

void stubOffline(
  1. HttpMethod method,
  2. String endpoint
)

Stubs the offline short-circuit, for testing no-connection paths.

Implementation

void stubOffline(HttpMethod method, String endpoint) {
  stub(method, endpoint, left(ErrorSource.noInternetConnection.getFailure()));
}