When using:
expect(subject).[last|first|array].to(throwError())
the tests only compile if the element used is Any. Otherwise you get a compilation error.
So
let subject = ReplaySubject<**Any**>.createUnbounded()
subject.onError(AnyError.any)
expect(subject).first.to(throwError())
works.
While
let subject = ReplaySubject<**String**>.createUnbounded()
subject.onError(AnyError.any)
expect(subject).first.to(throwError())
proceses: Instance method 'to(_:description:)' requires the types 'String' and 'Any' be equivalent
This issue seems closely related to #38
When using:
the tests only compile if the element used is
Any. Otherwise you get a compilation error.So
works.
While
proceses:
Instance method 'to(_:description:)' requires the types 'String' and 'Any' be equivalentThis issue seems closely related to #38