Questions tagged [rx-blocking]
3 questions
1
vote
1 answer
Test PublishSubject for ViewState
I'm trying to test the main functionality of my ViewModel. The important step is to test te loaded state completed. But for sure, for a better test it could be interesting to test al states.
I was reading a lot of post and information about RxTest…

Michel Marqués
- 161
- 1
- 2
- 10
1
vote
4 answers
iOS RxSwift - How to unwrap an `Optional>` or `T??`?
I'm using the logic below to check the state of my subject using RxBlocking. I'm getting a weird value of Int?? out of try? subject.verifier.toBlocking().first().
The syntax below pleases the compiler but makes my eyes bleed.
How do I get an…

Alex Stone
- 46,408
- 55
- 231
- 407
1
vote
1 answer
RxSwift, tests with RxBlocking do not end
I'm trying to test a very simple view model:
struct SearchViewModelImpl: SearchViewModel {
let query = PublishSubject()
let results: Observable>
init(searchService: SearchService) {
results = query
…

emenegro
- 6,901
- 10
- 45
- 68