/Nimble-Promissum

Nimble matchers for more expressively testing Promissum promises

Primary LanguageSwiftMIT LicenseMIT

Nimble-Promissum

Nimble matchers for Promissum promises. These allow you to easily write expressive tests that produce useful failure messages when working with promises.

Usage

let promise = computeTheMeaningOfLife()

expect(promise).to(bePending())
expect(promise).toEventually(beResolved())
expect(promise).toNot(beRejected())

expect(promise.value).to(equal(42))

Installation

Nimble-Promissum is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Nimble-Promissum"

Author

Brian Croom, brian.s.croom@gmail.com

License

Nimble-Promissum is available under the MIT license. See the LICENSE file for more info.