We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72dea8d commit b4072ddCopy full SHA for b4072dd
Demo/DemoTests/AlertActionTests.swift
@@ -43,8 +43,17 @@ class AlertActionTests: QuickSpec {
43
44
it("disables the alert action if the Action is disabled") {
45
let subject = UIAlertAction.Action("Hi", style: .Default)
46
+ let disposeBag = DisposeBag()
47
- subject.rx_action = emptyAction(Observable.just(false))
48
+ subject.rx_action = emptyAction(.just(false))
49
+ waitUntil { done in
50
+ subject.rx_observe(Bool.self, "enabled")
51
+ .take(1)
52
+ .subscribeNext { _ in
53
+ done()
54
+ }
55
+ .addDisposableTo(disposeBag)
56
57
58
expect(subject.enabled) == false
59
}
0 commit comments