Browse Source

Removed excess `method` declarations on download and upload APIs in test suite.

Christian Noon 9 years ago
parent
commit
bc2f0aa91c
2 changed files with 1 additions and 2 deletions
  1. 1 1
      Tests/DownloadTests.swift
  2. 0 1
      Tests/UploadTests.swift

+ 1 - 1
Tests/DownloadTests.swift

@@ -210,7 +210,7 @@ class DownloadResponseTestCase: BaseTestCase {
         var response: DefaultDownloadResponse?
         var response: DefaultDownloadResponse?
 
 
         // When
         // When
-        Alamofire.download(urlString, method: .get, headers: headers, to: destination)
+        Alamofire.download(urlString, headers: headers, to: destination)
             .response { resp in
             .response { resp in
                 response = resp
                 response = resp
                 expectation.fulfill()
                 expectation.fulfill()

+ 0 - 1
Tests/UploadTests.swift

@@ -282,7 +282,6 @@ class UploadMultipartFormDataTestCase: BaseTestCase {
                 formData = multipartFormData
                 formData = multipartFormData
             },
             },
             to: urlString,
             to: urlString,
-            method: .post,
             encodingCompletion: { result in
             encodingCompletion: { result in
                 switch result {
                 switch result {
                 case .success(let upload, _, _):
                 case .success(let upload, _, _):