Skip to content

Commit

Permalink
fixup! Update RSC19a with the use of ARTHTTPPaginatedResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Sep 13, 2018
1 parent 85711c6 commit 63ebbf5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Spec/RestClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1632,14 +1632,10 @@ class RestClient: QuickSpec {
waitUntil(timeout: testTimeout) { done in
do {
try rest.request("get", path: "feature", params: nil, body: nil, headers: nil) { paginatedResponse, error in
guard let error = error else {
fail("Error is empty"); done(); return
}
expect(error).to(beNil())
guard let paginatedResponse = paginatedResponse else {
fail("PaginatedResult is empty"); done(); return
}
expect(error.statusCode) == 404
expect(error.localizedDescription).to(contain("Could not find path"))
expect(paginatedResponse.items.count) == 0
expect(paginatedResponse.hasNext) == false
expect(paginatedResponse.isLast) == true
Expand Down

0 comments on commit 63ebbf5

Please sign in to comment.