Created
October 18, 2016 15:20
-
-
Save andersio/25b0a848b4d24add2dea730051a20b0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Quick | |
| import Nimble | |
| import ReactiveSwift | |
| import ReactiveCocoa | |
| import Result | |
| class UISwitchSpec: QuickSpec { | |
| override func spec() { | |
| var toggle: UISwitch! | |
| weak var _toggle: UISwitch? | |
| beforeEach { | |
| toggle = UISwitch(frame: .zero) | |
| _toggle = toggle | |
| } | |
| afterEach { | |
| toggle = nil | |
| expect(_toggle).to(beNil()) // FAILED | |
| } | |
| it("should accept changes from bindings to its `isOn` state") { | |
| } | |
| it("should emit user initiated changes to its `isOn` state") { | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment