//
//  MultiSelectToggleItem_ActionSheetTests.swift
//  Sheeeeeeeeet
//
//  Created by Daniel Saidi on 2019-09-17.
//  Copyright © 2019 Daniel Saidi. All rights reserved.
//

import Quick
import Nimble
import Sheeeeeeeeet
import UIKit

class MultiSelectToggleItem_ActionSheetTests: QuickSpec {
    
    override func spec() {
        
        describe("action sheet cell") {
            
            it("is of correct type") {
                let item = MultiSelectToggleItem(title: "", state: .selectAll, group: "", selectAllTitle: "", deselectAllTitle: "")
                let cell = item.actionSheetCell(for: UITableView())
                expect(cell is ActionSheetMultiSelectToggleItemCell).to(beTrue())
                expect(item.actionSheetCellType is ActionSheetMultiSelectToggleItemCell.Type).to(beTrue())
            }
            
            it("uses correct style") {
                let item = MultiSelectToggleItem(title: "", state: .selectAll, group: "", selectAllTitle: "", deselectAllTitle: "")
                expect(item.actionSheetCellStyle).to(equal(.value1))
            }
        }
    }
}
