提交 7d644e07 编写于 作者: C Christian Noon

Added response status code asssertions for redirect tests.

上级 b1d2cc90
......@@ -88,6 +88,7 @@ class AlamofireRedirectResponseTestCase: XCTestCase {
XCTAssertNil(error, "error should be nil")
XCTAssertEqual(response!.URL!, NSURL(string: "http://www.google.com/")!, "request should have followed a redirect")
XCTAssertEqual(response!.statusCode, 200, "response should have a 200 status code")
expectation.fulfill()
}
......@@ -118,6 +119,7 @@ class AlamofireRedirectResponseTestCase: XCTestCase {
XCTAssertNil(error, "error should be nil")
XCTAssertEqual(response!.URL!, NSURL(string: URL)!, "request should not have followed a redirect")
XCTAssertEqual(response!.statusCode, 301, "response should have a 301 status code")
expectation.fulfill()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册