ActionSheetSectionMarginTests.swift 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // ActionSheetSectionMarginTests.swift
  3. // Sheeeeeeeeet
  4. //
  5. // Created by Daniel Saidi on 2017-11-27.
  6. // Copyright © 2017 Daniel Saidi. All rights reserved.
  7. //
  8. import Quick
  9. import Nimble
  10. import Sheeeeeeeeet
  11. class ActionSheetSectionMarginTests: QuickSpec {
  12. override func spec() {
  13. var item: ActionSheetSectionMargin!
  14. beforeEach {
  15. item = ActionSheetSectionMargin()
  16. }
  17. describe("instance") {
  18. it("is correctly configured") {
  19. expect(item.title).to(equal(""))
  20. expect(item.value).to(beNil())
  21. expect(item.image).to(beNil())
  22. expect(item.tapBehavior).to(equal(ActionSheetItem.TapBehavior.none))
  23. }
  24. }
  25. describe("cell") {
  26. it("is of correct type") {
  27. let cell = item.cell(for: UITableView())
  28. expect(cell is ActionSheetSectionMarginCell).to(beTrue())
  29. expect(cell.reuseIdentifier).to(equal(item.cellReuseIdentifier))
  30. }
  31. }
  32. }
  33. }