Skip to content

Commit ee09f18

Browse files
author
Sean Henry
committed
Merge sk-fix into master
2 parents a4719bf + f57cd2d commit ee09f18

32 files changed

+70
-534
lines changed

EndToEndTests/EndToEndTests.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,10 @@ class EndToEndTests: MockGeneratorBaseTestCase {
159159
assertMockGeneratesExpected("AugmentedClassSubscriptMock")
160160
}
161161

162-
func test_returnsErrorWhenSDKPathDoesNotExist() {
162+
func test_returnsErrorWhenProjectURLDoesNotExist() {
163163
let preferences = Preferences()
164-
let moduleCachePath = preferences.moduleCachePath
165-
preferences.moduleCachePath = "/path/to/nowhere"
166-
assertMockGeneratesError(fileName: "SimpleProtocolMock", "The module cache path does not exist. Change it in the companion app.")
167-
preferences.moduleCachePath = moduleCachePath
164+
preferences.automaticallyDetectProjectPath = false
165+
preferences.projectPath = URL(fileURLWithPath: "/not/project")
166+
assertMockGeneratesError(fileName: "SimpleProtocolMock", "The project path '/not/project' does not exist. Change it in the companion app.")
168167
}
169168
}

EndToEndTests/MockGeneratorBaseTestCase.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class MockGeneratorBaseTestCase: XCTestCase {
1111
let prefs = Preferences()
1212
prefs.automaticallyDetectProjectPath = false
1313
prefs.projectPath = URL(fileURLWithPath: testProject)
14-
prefs.moduleCachePath = getValidModuleCachePath()
1514
XPCManager.setUpConnection()
1615
}
1716

@@ -97,8 +96,4 @@ class MockGeneratorBaseTestCase: XCTestCase {
9796
self.sourceTextBuffer = buffer
9897
}
9998
}
100-
101-
private func getValidModuleCachePath() -> String {
102-
return "/Users/\(NSUserName())/Library/Developer/Xcode/DerivedData/ModuleCache.noindex"
103-
}
10499
}

Gemfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)