-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
When comparing instances or classes the methods beAnInstanceOf and beAKindOf returns a Predicate<Any> but RxNimble expectation ask's for Predicate<T> instead.
Code:
let driverObject = Driver.just(Int())
// doesn't compile
expect(driverObject.asObservable()).first.to(beAnInstanceOf(Int.self))
// compile
let result = try! driverObject.asObservable().toBlocking().first()
expect(result).to(beAnInstanceOf(Int.self))I don't know if it is as expected or if we can improve this.
Therefore I'm at your disposal to make a PR for this, but I would need some direction since I think this is not as easy as just changing the type of var first
Metadata
Metadata
Assignees
Labels
No labels