Skip to content

Commit

Permalink
Adding missing forced unwrap in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Nov 21, 2014
1 parent fb5592e commit 9016949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/DownloadTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class AlamofireDownloadResponseTestCase: XCTestCase {
XCTAssertEqual(filteredContents.count, 1, "should have one file in Documents")

let file = filteredContents.first as NSURL
XCTAssertEqual(file.lastPathComponent, "\(numberOfLines)", "filename should be \(numberOfLines)")
XCTAssertEqual(file.lastPathComponent!, "\(numberOfLines)", "filename should be \(numberOfLines)")

if let data = NSData(contentsOfURL: file) {
XCTAssertGreaterThan(data.length, 0, "data length should be non-zero")
Expand Down

0 comments on commit 9016949

Please sign in to comment.