فهرست منبع

Added a rawValue to the assertion to make debugging easier in failure cases.

Christian Noon 10 سال پیش
والد
کامیت
a5321881af
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Tests/ManagerTests.swift

+ 1 - 1
Tests/ManagerTests.swift

@@ -83,7 +83,7 @@ class ManagerTestCase: BaseTestCase {
         manager = nil
 
         // Then
-        XCTAssertEqual(request.task.state, NSURLSessionTaskState.Canceling, "request task state should be '.Canceling'")
+        XCTAssertEqual(request.task.state.rawValue, NSURLSessionTaskState.Canceling.rawValue, "request task state should be '.Canceling'")
         XCTAssertNil(manager, "manager should be nil")
     }
 }