Skip to content

Commit

Permalink
Fix warnings from Xcode 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquidsoul committed Mar 29, 2017
1 parent 25f82a7 commit 6de3082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/Swift/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MainViewController: UIViewController {
installTextStub(self.installTextStubSwitch)
installImageStub(self.installImageStubSwitch)
OHHTTPStubs.onStubActivation { (request: URLRequest, stub: OHHTTPStubsDescriptor, response: OHHTTPStubsResponse) in
print("[OHHTTPStubs] Request to \(request.url!) has been stubbed with \(stub.name)")
print("[OHHTTPStubs] Request to \(request.url!) has been stubbed with \(String(describing: stub.name))")
}
}

Expand Down
4 changes: 2 additions & 2 deletions OHHTTPStubs/UnitTests/Test Suites/SwiftHelpersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class SwiftHelpersTests : XCTestCase {
let req = NSURLRequest(URL: NSURL(string: url)!)
#endif
let p = req.url?.path
print("URL: \(url) -> Path: \(p)")
print("URL: \(url) -> Path: \(String(reflecting: p))")
XCTAssert(matcher(req) == result, "isPath(\"\(path)\" matcher failed when testing url \(url)")
}
}
Expand Down Expand Up @@ -187,7 +187,7 @@ class SwiftHelpersTests : XCTestCase {
let req = NSURLRequest(URL: NSURL(string: url)!)
#endif
let p = req.url?.path
print("URL: \(url) -> Path: \(p)")
print("URL: \(url) -> Path: \(String(reflecting: p))")
XCTAssert(matcher(req) == result, "pathStartsWith(\"\(path)\" matcher failed when testing url \(url)")
}
}
Expand Down

0 comments on commit 6de3082

Please sign in to comment.