From 0c527fd47f03ad7f88a689783c0c3b1d512df3d4 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Sat, 20 Aug 2016 13:03:31 +0300 Subject: [PATCH] fix tests --- Tests/TableKitTests.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/TableKitTests.swift b/Tests/TableKitTests.swift index d9df217..facffd3 100644 --- a/Tests/TableKitTests.swift +++ b/Tests/TableKitTests.swift @@ -42,21 +42,21 @@ struct TestTableViewCellOptions { static let CellAction: String = "CellAction" static let CellActionUserInfoKey: String = "CellActionUserInfoKey" static let CellActionUserInfoValue: String = "CellActionUserInfoValue" - static let EstimatedHeight: Float = 255 + static let EstimatedHeight: CGFloat = 255 } class TestTableViewCell: UITableViewCell, ConfigurableCell { typealias T = TestData + static var estimatedHeight: CGFloat? { + return TestTableViewCellOptions.EstimatedHeight + } + static func reusableIdentifier() -> String { return TestTableViewCellOptions.ReusableIdentifier } - static func estimatedHeight() -> Float { - return TestTableViewCellOptions.EstimatedHeight - } - func configure(with item: T) { textLabel?.text = item.title }