Browse Source

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

Christian Noon 10 years ago
parent
commit
a5321881af
1 changed files with 1 additions and 1 deletions
  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")
     }
 }