Nimble-Promissum 0.1.1

Nimble-Promissum 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2016
SPMSupports SPM

Maintained by Brian Croom.



 
Depends on:
Promissum~> 0.5.0
Nimble>= 0
Quick>= 0
 

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, [email protected]

License

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