Skip to content

Commit 9c40b5c

Browse files
Update UITest to Swift 4
1 parent eae79fb commit 9c40b5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftWeatherUITests/SwiftWeatherUITests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ class SwiftWeatherUITests: QuickSpec {
2222
context("location service is enabled") {
2323
context("when in portrait") {
2424
beforeEach {
25-
XCUIDevice.shared().orientation = .portrait
25+
XCUIDevice.shared.orientation = .portrait
2626
}
2727
itBehavesLike("a properly laidout wheather viewcontroller")
2828
}
2929

3030
context("when in landscape") {
3131
beforeEach {
32-
XCUIDevice.shared().orientation = .landscapeLeft
32+
XCUIDevice.shared.orientation = .landscapeLeft
3333
}
3434
itBehavesLike("a properly laidout wheather viewcontroller")
3535
}

0 commit comments

Comments
 (0)