Browse Source

Fixed failing test due to dictionary reordering

Kevin Harwood 9 years ago
parent
commit
6f687098f7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Tests/RequestTests.swift

+ 1 - 2
Tests/RequestTests.swift

@@ -597,8 +597,7 @@ class RequestDebugDescriptionTestCase: BaseTestCase {
             "command should contain 'application/json' Content-Type"
             "command should contain 'application/json' Content-Type"
         )
         )
 
 
-        let expectedBody = "-d \"{\\\"f'oo\\\":\\\"ba'r\\\",\\\"fo\\\\\\\"o\\\":\\\"b\\\\\\\"ar\\\",\\\"foo\\\":\\\"bar\\\"}\""
-        let range = request.debugDescription.range(of: expectedBody)
+        let expectedBody = "-d \"{\\\"f'oo\\\":\\\"ba'r\\\",\\\"foo\\\":\\\"bar\\\",\\\"fo\\\\\\\"o\\\":\\\"b\\\\\\\"ar\\\"}\""        
         XCTAssertTrue(
         XCTAssertTrue(
             request.debugDescription.range(of: expectedBody) != nil,
             request.debugDescription.range(of: expectedBody) != nil,
             "command data should contain JSON encoded parameters"
             "command data should contain JSON encoded parameters"