Add $(CURDIR) helper to expand the base path of the spec file

This commit is contained in:
Ell Neal
2019-01-10 11:43:04 +00:00
parent 43db3254d6
commit 05fa244a89
4 changed files with 58 additions and 0 deletions
@@ -10,6 +10,14 @@ class SpecLoadingTests: XCTestCase {
func testSpecLoader() {
describe {
$0.it("expands directories") {
let path = fixturePath + "paths_test.yml"
let project = try Project(path: path)
try expect(project.targets.first!.sources.first!.path) == (fixturePath + "paths_test" + "source").string
try expect(project.targets.last!.sources.first!.path) == (fixturePath + "source").string
}
$0.it("merges includes") {
let path = fixturePath + "include_test.yml"
let project = try Project(path: path)