 
         expect(result).toEventuallyNot(beNil())
     }
-//
-//    func testParsesTheTaskProperlyUpdatingATask() {
-//        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
-//            .andReturn(200)?
-//            .withBody(fromJsonFile("updateTaskResponse"))
-//
-//        var result: Result<TaskDTO, TODOAPIClientError>?
-//        apiClient.updateTask(anyTask) { response in
-//            result = response
-//        }
-//
-//        expect(result).toEventuallyNot(beNil())
-//        assertUpdatedTaskContainsExpectedValues((result?.value)!)
-//    }
-//
-//    func testReturnsNetworkErrorIfThereIsNoConnectionUpdatingATask() {
-//        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
-//            .andFailWithError(NSError.networkError())
-//
-//        var result: Result<TaskDTO, TODOAPIClientError>?
-//        apiClient.updateTask(anyTask) { response in
-//            result = response
-//        }
-//
-//        expect(result?.error).toEventually(equal(TODOAPIClientError.networkError))
-//    }
-//
-//    func testReturnsItemNotFoundErrorIfThereIsNoTaksToUpdateWithTheUsedId() {
-//        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
-//            .andReturn(404)
-//
-//        var result: Result<TaskDTO, TODOAPIClientError>?
-//        apiClient.updateTask(anyTask) { response in
-//            result = response
-//        }
-//
-//        expect(result?.error).toEventually(equal(TODOAPIClientError.itemNotFound))
-//    }
-//
-//    func testReturnsUnknowErrorIfThereIsAnyHandledErrorUpdatingATask() {
-//        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
-//            .andReturn(418)
-//
-//        var result: Result<TaskDTO, TODOAPIClientError>?
-//        apiClient.updateTask(anyTask) { response in
-//            result = response
-//        }
-//
-//        expect(result?.error).toEventually(equal(TODOAPIClientError.unknownError(code: 418)))
-//    }
+    //
+    //    func testParsesTheTaskProperlyUpdatingATask() {
+    //        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
+    //            .andReturn(200)?
+    //            .withBody(fromJsonFile("updateTaskResponse"))
+    //
+    //        var result: Result<TaskDTO, TODOAPIClientError>?
+    //        apiClient.updateTask(anyTask) { response in
+    //            result = response
+    //        }
+    //
+    //        expect(result).toEventuallyNot(beNil())
+    //        assertUpdatedTaskContainsExpectedValues((result?.value)!)
+    //    }
+    //
+    //    func testReturnsNetworkErrorIfThereIsNoConnectionUpdatingATask() {
+    //        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
+    //            .andFailWithError(NSError.networkError())
+    //
+    //        var result: Result<TaskDTO, TODOAPIClientError>?
+    //        apiClient.updateTask(anyTask) { response in
+    //            result = response
+    //        }
+    //
+    //        expect(result?.error).toEventually(equal(TODOAPIClientError.networkError))
+    //    }
+    //
+    //    func testReturnsItemNotFoundErrorIfThereIsNoTaksToUpdateWithTheUsedId() {
+    //        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
+    //            .andReturn(404)
+    //
+    //        var result: Result<TaskDTO, TODOAPIClientError>?
+    //        apiClient.updateTask(anyTask) { response in
+    //            result = response
+    //        }
+    //
+    //        expect(result?.error).toEventually(equal(TODOAPIClientError.itemNotFound))
+    //    }
+    //
+    //    func testReturnsUnknowErrorIfThereIsAnyHandledErrorUpdatingATask() {
+    //        _ = stubRequest("PUT", "http://jsonplaceholder.typicode.com/todos/\(anyTask.id)")
+    //            .andReturn(418)
+    //
+    //        var result: Result<TaskDTO, TODOAPIClientError>?
+    //        apiClient.updateTask(anyTask) { response in
+    //            result = response
+    //        }
+    //
+    //        expect(result?.error).toEventually(equal(TODOAPIClientError.unknownError(code: 418)))
+    //    }
 
     fileprivate func assertTaskContainsExpectedValues(_ task: TaskDTO) {
         expect(task.id).to(equal("1"))

                return fixture(filePath: "", status: 418, headers: ["Content-Type":"application/json"])
        }


        var result: Result<[TaskDTO], TODOAPIClientError>?
        apiClient.getAllTasks { response in
            result = response

    }

}

