add UIAlertAction tests to Control+RxTests+UIKit

This commit is contained in:
Andrew Breckenridge 2016-05-07 12:31:31 -07:00
parent 0188dccd4f
commit c4e83f3f34
1 changed files with 16 additions and 0 deletions

View File

@ -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)