Skip to content

Commit

Permalink
Added response status code asssertions for redirect tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed May 6, 2015
1 parent b1d2cc9 commit 7d644e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/ResponseTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 7d644e0

Please sign in to comment.