Procházet zdrojové kódy

Renamed test and fixed copy/paste error in the failure condition.

Christian Noon před 10 roky
rodič
revize
e5132d6e31
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Tests/RequestTests.swift

+ 2 - 2
Tests/RequestTests.swift

@@ -278,7 +278,7 @@ class RequestResponseTestCase: BaseTestCase {
         }
     }
 
-    func testThatPOSTRequestWithUnicodeParametersEncodesAndTransmitsParametersAsExpected() {
+    func testPOSTRequestWithUnicodeParameters() {
         // Given
         let URLString = "https://httpbin.org/post"
         let parameters = [
@@ -320,7 +320,7 @@ class RequestResponseTestCase: BaseTestCase {
             XCTAssertEqual(form["arabic"], parameters["arabic"], "arabic parameter value should match form value")
             XCTAssertEqual(form["emoji"], parameters["emoji"], "emoji parameter value should match form value")
         } else {
-            XCTFail("headers parameter in JSON should not be nil")
+            XCTFail("form parameter in JSON should not be nil")
         }
     }