   }
 
   func testFetchWhenResponseIsValid() {
-    stub(condition: { request in return request.url!.absoluteString ==  VersionFileURL }) { _ in
+    stub(condition: stubCondition()) { _ in
       return OHHTTPStubsResponse(
         data: fixtureData("Versions"),
         statusCode: 200,

  }

  func testFetchWhenRequestReturnsNon200Status() {
    stub(condition: { request in return request.url!.absoluteString ==  VersionFileURL }) { _ in
      return OHHTTPStubsResponse(data: Data(), statusCode: 500, headers: nil)
    }


  }

  func testFetchWhenRequestErrorsOut() {
    stub(condition: stubCondition()) { _ in
      return OHHTTPStubsResponse(data: Data(), statusCode: 500, headers: nil)
    }
    validateRequest() { version, error in
