From 97d38e6723dc21a3b50d1493483406bd2392a77e Mon Sep 17 00:00:00 2001 From: Michael Scoff Date: Mon, 30 Oct 2017 19:31:34 -0700 Subject: [PATCH] Add RequestCoordinatorTests --- .../RequestCoordinatorTests.swift | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 TrustTests/Coordinators/RequestCoordinatorTests.swift diff --git a/TrustTests/Coordinators/RequestCoordinatorTests.swift b/TrustTests/Coordinators/RequestCoordinatorTests.swift new file mode 100644 index 000000000..892e5964f --- /dev/null +++ b/TrustTests/Coordinators/RequestCoordinatorTests.swift @@ -0,0 +1,19 @@ +// Copyright SIX DAY LLC. All rights reserved. + +import XCTest +@testable import Trust + +class RequestCoordinatorTests: XCTestCase { + + func testRootViewController() { + let coordinator = RequestCoordinator( + navigationController: FakeNavigationController(), + session: .make() + ) + + coordinator.start() + + XCTAssertTrue(coordinator.navigationController.viewControllers.first is RequestViewController) + } +} +