Name: RxNimble
Owner: RxSwift Community
Description: Nimble extensions making unit testing with RxSwift easier :tada:
Created: 2016-01-07 14:24:39.0
Updated: 2018-04-26 16:56:04.0
Pushed: 2017-11-02 17:14:12.0
Size: 42
Language: Swift
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Nimble extensions that making unit testing with RxSwift easier :tada:
RxSwift includes a really nifty little library called RxBlocking which provides convenience functions for peeking in on Observable
instances. Check is a blocking call, hence the name.
But writing code to check an Observable
's value is sooooo tedious:
result = try! observable.toBlocking().first()
ct(result) == 42
With RxNimble
, we've added Nimble extension for Observable
s, so the code above can be rewritten as:
ct(observable).first == 42
Nice.
Add to your podfile:
'RxNimble'
And pod install
and that's it!
Very very very rarely the Swift compiler gets confused about the different types and you need to use the original RxBlocking
code.
MIT ofc.