Correction for rx_itemAccessoryButtonTapped unit test - use testRow value for delegate call

This commit is contained in:
Mark Woollard 2016-01-29 07:34:12 +00:00
parent 79163619be
commit 7e78517f8a
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ extension ControlTests {
}
let testRow = NSIndexPath(forRow: 1, inSection: 0)
tableView.delegate!.tableView!(tableView, accessoryButtonTappedForRowWithIndexPath: NSIndexPath(forRow: 1, inSection: 0))
tableView.delegate!.tableView!(tableView, accessoryButtonTappedForRowWithIndexPath: testRow)
XCTAssertEqual(selectedItem, testRow)