Skip to content

Commit

Permalink
Merge #203
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Oct 7, 2016
2 parents 2b8b76e + f540467 commit 88cf9b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# OHHTTPStubs — CHANGELOG

## Master

* added `@discardableResult` to func stub for swift 3.
[@mrkite](https://github.com/mrkite), [#203](https://github.com/AliSoftware/OHHTTPStubs/pull/203)

## [5.2.1](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/5.2.0)

* Fix typos in README and documentation.
Expand Down
1 change: 1 addition & 0 deletions OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public func fixture(filePath: String, status: Int32 = 200, headers: [NSObject: A
* and can be later used to remove it with `removeStub:`
*/
#if swift(>=3.0)
@discardableResult
public func stub(condition: @escaping OHHTTPStubsTestBlock, response: @escaping OHHTTPStubsResponseBlock) -> OHHTTPStubsDescriptor {
return OHHTTPStubs.stubRequests(passingTest: condition, withStubResponse: response)
}
Expand Down

0 comments on commit 88cf9b2

Please sign in to comment.