Skip to content

Instantly share code, notes, and snippets.

@andersio
Created October 18, 2016 15:20
Show Gist options
  • Select an option

  • Save andersio/25b0a848b4d24add2dea730051a20b0a to your computer and use it in GitHub Desktop.

Select an option

Save andersio/25b0a848b4d24add2dea730051a20b0a to your computer and use it in GitHub Desktop.
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