         describe {
             $0.it("merges includes") {
                 let path = fixturePath + "include_test.json"
-                let project = try Project(path: path)
+                let project = try loadSpec(path: path)
 
                 try expect(project.name) == "NewName"
                 try expect(project.settingGroups) == [


            $0.it("respects directory expansion preference") {
                let path = fixturePath + "legacy_paths_test.yml"
                let project = try Project(path: path)

                try expect(project.configFiles) == [
                    "IncludedConfig": "config",

    }
}

fileprivate func loadSpec(path: Path, file: String = #file, line: Int = #line) throws -> Project {
    do {
        let specLoader = SpecLoader(version: "1.1.0")
        return try specLoader.loadProject(path: path)
    } catch {
        throw failure("\(error)", file: file, line: line)
    }
}

fileprivate func expectSpecError(_ project: [String: Any], _ expectedError: SpecParsingError, file: String = #file, line: Int = #line) throws {
    try expectError(expectedError, file: file, line: line) {
        try getProjectSpec(project)
