Skip to content

Commit

Permalink
Use /var/empty for fake paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboyle committed Aug 29, 2018
1 parent 0811ae6 commit ed4571a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Tests/CarthageKitTests/ProjectSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class ProjectSpec: QuickSpec {
let testDefinitionURL = Bundle(for: type(of: self)).url(forResource: "BinaryOnly/successful", withExtension: "json")!

beforeEach {
project = Project(directoryURL: URL(string: "file://fake")!)
project = Project(directoryURL: URL(string: "file:///var/empty/fake")!)
}

it("should return definition") {
Expand Down Expand Up @@ -553,7 +553,7 @@ class ProjectSpec: QuickSpec {
"""

let resolvedCartfile = ResolvedCartfile.from(string: cartfile)
let project = Project(directoryURL: URL(string: "file://fake")!)
let project = Project(directoryURL: URL(string: "file:///var/empty/fake")!)

let result = project.transitiveDependencies(["Moya"], resolvedCartfile: resolvedCartfile.value!).single()

Expand Down
6 changes: 3 additions & 3 deletions Tests/CarthageKitTests/ValidateSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ValidateSpec: QuickSpec {
describe("requirementsByDependency") {
it("should group dependencies by parent dependency") {
let resolvedCartfile = ResolvedCartfile.from(string: validCartfile)
let project = Project(directoryURL: URL(string: "file://fake")!)
let project = Project(directoryURL: URL(string: "file:///var/empty/fake")!)

let result = project.requirementsByDependency(resolvedCartfile: resolvedCartfile.value!, tryCheckoutDirectory: false).single()

Expand Down Expand Up @@ -131,7 +131,7 @@ class ValidateSpec: QuickSpec {
describe("validate") {
it("should identify a valid Cartfile.resolved as compatible") {
let resolvedCartfile = ResolvedCartfile.from(string: validCartfile)
let project = Project(directoryURL: URL(string: "file://fake")!)
let project = Project(directoryURL: URL(string: "file:///var/empty/fake")!)

let result = project.validate(resolvedCartfile: resolvedCartfile.value!).single()

Expand All @@ -140,7 +140,7 @@ class ValidateSpec: QuickSpec {

it("should identify incompatibilities in an invalid Cartfile.resolved") {
let resolvedCartfile = ResolvedCartfile.from(string: invalidCartfile)
let project = Project(directoryURL: URL(string: "file://fake")!)
let project = Project(directoryURL: URL(string: "file:///var/empty/fake")!)

let error = project.validate(resolvedCartfile: resolvedCartfile.value!).single()?.error
let infos = error?.compatibilityInfos
Expand Down

0 comments on commit ed4571a

Please sign in to comment.