                                 called += 2
                                 expect(error) == ErrorStub.unknown
                             }
-                        }).addDisposableTo(disposeBag)
+                        }).disposed(by: disposeBag)
                     
                     expect(called) == 3
                 }

                            } else {
                                fail()
                            }
                        }).addDisposableTo(disposeBag)
                    
                    expect(called) == 3
                }

                                called += 2
                                expect(error) == ErrorStub.unknown
                            }
                        }).disposed(by: disposeBag)
                    
                    expect(called) == 3
                }
