From c4e83f3f341adbbf2430b5bb7cad08821aa8b907 Mon Sep 17 00:00:00 2001 From: Andrew Breckenridge Date: Sat, 7 May 2016 12:31:31 -0700 Subject: [PATCH] add UIAlertAction tests to Control+RxTests+UIKit --- Tests/RxCocoaTests/Control+RxTests+UIKit.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Tests/RxCocoaTests/Control+RxTests+UIKit.swift b/Tests/RxCocoaTests/Control+RxTests+UIKit.swift index 2fa27c26..d33c53a4 100644 --- a/Tests/RxCocoaTests/Control+RxTests+UIKit.swift +++ b/Tests/RxCocoaTests/Control+RxTests+UIKit.swift @@ -159,6 +159,22 @@ extension ControlTests { } } +// UIAlertAction +extension ControlTests { + func testAlertAction_Enable { + let subject = UIAlertAction() + Observable.just(false).subscribe(subject.rx_enabled).dispose() + + XCTAssertTrue(subject.enabled == true) + } + + func testAlertAction_Disable { + let subject = UIAlertAction() + Observable.just(false).subscribe(subject.rx_enabled).dispose() + + XCTAssertTrue(subject.enabled == true) + } +} #if os(iOS)