//
//  CharactersNavigationControllerTests.swift
//  Example
//
//  Created by Pedro Vicente Gomez on 26/11/15.
//  Copyright © 2015 GoKarumi S.L. All rights reserved.
//

import Foundation
import KIF
import Nimble
@testable import Example

class CharactersViewControllerTests: AcceptanceTestCase {

    func testShowsSpiderManAndIronManByDefaultSuperHeroes() {
        openCharactersViewController()

        let spiderManRowLabel = tester().waitForViewWithAccessibilityLabel("SpiderMan") as! UILabel
        let ironManRowLabel = tester().waitForViewWithAccessibilityLabel("IronMan") as! UILabel

        expect(spiderManRowLabel.text).to(equal("SpiderMan"))
        expect(ironManRowLabel.text).to(equal("IronMan"))
    }

    private func openCharactersViewController() {
        let charactersViewController = ServiceLocator().provideCharactersViewController()
        presentViewController(charactersViewController)
    }

}
//
//  CharactersNavigationControllerTests.swift
//  Example
//
//  Created by Pedro Vicente Gomez on 26/11/15.
//  Copyright © 2015 GoKarumi S.L. All rights reserved.
//

import Foundation
import KIF
import Nimble
@testable import Example

class CharactersViewControllerTests: AcceptanceTestCase {

    override func tearDown() {
        super.tearDown()
    }

    func testShowsSpiderManAndIronManByDefaultSuperHeroes() {
        openCharactersViewController()

        let spiderManRowLabel = tester().waitForViewWithAccessibilityLabel("SpiderMan") as! UILabel
        let ironManRowLabel = tester().waitForViewWithAccessibilityLabel("IronMan") as! UILabel

        expect(spiderManRowLabel.text).to(equal("SpiderMan"))
        expect(ironManRowLabel.text).to(equal("IronMan"))
    }

    private func openCharactersViewController() {
        let charactersViewController = ServiceLocator().provideCharactersViewController()
        presentViewController(charactersViewController)
    }

}
--- 
+++ 
@@ -12,10 +12,6 @@
 @testable import Example
 
 class CharactersViewControllerTests: AcceptanceTestCase {
-
-    override func tearDown() {
-        super.tearDown()
-    }
 
     func testShowsSpiderManAndIronManByDefaultSuperHeroes() {
         openCharactersViewController()
Remove not needed tearDown method
