Skip to content

Commit

Permalink
Merge sk-fix into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Henry committed Oct 21, 2019
2 parents a4719bf + f57cd2d commit ee09f18
Show file tree
Hide file tree
Showing 32 changed files with 70 additions and 534 deletions.
9 changes: 4 additions & 5 deletions EndToEndTests/EndToEndTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,10 @@ class EndToEndTests: MockGeneratorBaseTestCase {
assertMockGeneratesExpected("AugmentedClassSubscriptMock")
}

func test_returnsErrorWhenSDKPathDoesNotExist() {
func test_returnsErrorWhenProjectURLDoesNotExist() {
let preferences = Preferences()
let moduleCachePath = preferences.moduleCachePath
preferences.moduleCachePath = "/path/to/nowhere"
assertMockGeneratesError(fileName: "SimpleProtocolMock", "The module cache path does not exist. Change it in the companion app.")
preferences.moduleCachePath = moduleCachePath
preferences.automaticallyDetectProjectPath = false
preferences.projectPath = URL(fileURLWithPath: "/not/project")
assertMockGeneratesError(fileName: "SimpleProtocolMock", "The project path '/not/project' does not exist. Change it in the companion app.")
}
}
5 changes: 0 additions & 5 deletions EndToEndTests/MockGeneratorBaseTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class MockGeneratorBaseTestCase: XCTestCase {
let prefs = Preferences()
prefs.automaticallyDetectProjectPath = false
prefs.projectPath = URL(fileURLWithPath: testProject)
prefs.moduleCachePath = getValidModuleCachePath()
XPCManager.setUpConnection()
}

Expand Down Expand Up @@ -97,8 +96,4 @@ class MockGeneratorBaseTestCase: XCTestCase {
self.sourceTextBuffer = buffer
}
}

private func getValidModuleCachePath() -> String {
return "/Users/\(NSUserName())/Library/Developer/Xcode/DerivedData/ModuleCache.noindex"
}
}
7 changes: 0 additions & 7 deletions Gemfile

This file was deleted.

160 changes: 0 additions & 160 deletions Gemfile.lock

This file was deleted.

Loading

0 comments on commit ee09f18

Please sign in to comment.