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


    waitForExpectations(timeout: 0.5, handler: nil)
  }
}

  }

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

