SHARE
TWEET

Untitled

a guest Jun 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func testKittenCellHasDisclosureIndicatorWhenAdoptable() {
  2.   dataSource.kittens.first?.isAdoptable = true
  3.  
  4.   guard let firstKitten = dataSource.kittens.first,
  5.     firstKitten.isAdoptable else {
  6.     return XCTFail("First kitten in dataSource should be adoptable")
  7.   }
  8.  
  9.   let cell = dataSource.tableView(tableView, cellForRowAt: IndexPath(row: 0, section: 0))
  10.   XCTAssertEqual(cell.accessoryType, .disclosureIndicator,
  11.                  "Cell should have disclosure indicator for adoptable kitten")
  12. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top