Latest 1.0.2
Homepage https://github.com/Pr0Ger/RxAdvancedNimble
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0
Dependencies Nimble, RxSwift, RxBlocking
Authors

Nimble extensions that make unit testing with RxSwift easier

Why

RxSwift includes a really nifty little library called RxBlocking which provides convenience functions for peeking in on Observable instances.
Also, there is a library called RxNimble which provides some operator overloads for equality checking.
But sometimes we need more complicated matching than just equality, so this is why I created this library.

Currently you type something like this:

let observable = Observable.of(0, 1, 2, 3)
expect { try observable.toBlocking().last() }.to(equal(3))

Now you can only type:

let observable = Observable.of(0, 1, 2, 3)
expect(observable).toEmitLast(equal(3))

License

MIT

Latest podspec

{
    "name": "RxAdvancedNimble",
    "version": "1.0.2",
    "summary": "Nimble extensions that make unit testing with RxSwift easier",
    "description": "This library includes functions that make testing RxSwift projects easier with Nimble.",
    "homepage": "https://github.com/Pr0Ger/RxAdvancedNimble",
    "authors": {
        "Sergey Petrov": "[email protected]"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/Pr0Ger/RxAdvancedNimble.git",
        "tag": "1.0.2"
    },
    "source_files": "Sources/ReactiveExpectation.swift",
    "dependencies": {
        "Nimble": [
            "~> 4.0"
        ],
        "RxSwift": [
            "~> 2.0"
        ],
        "RxBlocking": [
            "~> 2.0"
        ]
    }
}

Pin It on Pinterest

Share This