Skip to content

Instantly share code, notes, and snippets.

@Juanpe
Last active December 7, 2018 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juanpe/0a332b315701dea350deab410db0c03d to your computer and use it in GitHub Desktop.
Save Juanpe/0a332b315701dea350deab410db0c03d to your computer and use it in GitHub Desktop.
class ViewControllerTests: XCTestCase {
var sut: ViewController!
override func setUp() {
super.setUp()
sut = ViewController(locationProvider: CLLocationManager())
}
override func tearDown() {
sut = nil
super.tearDown()
}
func testRequestUserLocation() {
sut.requestUserLocation()
XCTAssertNotNil(sut.userLocation)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment