Browse Source

Adding missing forced unwrap in test

Mattt Thompson 11 years ago
parent
commit
9016949899
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/DownloadTests.swift

+ 1 - 1
Tests/DownloadTests.swift

@@ -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")