RxSwiftCommunity/RxNimble

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

Homepage:

Size: 42

Language: Swift

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

RxNimble

Nimble extensions that making unit testing with RxSwift easier :tada:

Why

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 Observables, so the code above can be rewritten as:

ct(observable).first == 42

Nice.

Installation

Add to your podfile:

'RxNimble'

And pod install and that's it!

Known Issues

Very very very rarely the Swift compiler gets confused about the different types and you need to use the original RxBlocking code.

License

MIT ofc.

Give yourself a high five


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.