Unspecified project axis means current project or its build

This commit is contained in:
Martin Duhem 2016-02-22 12:58:30 +01:00
parent cfdbce10da
commit faf6120c93
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ object ParseKey extends Properties("Key parser test") {
parseExpected(structure, string, expected, mask)
}
property("An unspecified project axis resolves to the current project") =
property("An unspecified project axis resolves to the current project or the build of the current project") =
forAllNoShrink(structureDefinedKey) { (skm: StructureKeyMask) =>
import skm.{ structure, key }
@ -44,7 +44,7 @@ object ParseKey extends Properties("Key parser test") {
("Current: " + structure.current) |:
parse(structure, string) {
case Left(err) => false
case Right(sk) => sk.scope.project == Select(structure.current)
case Right(sk) => sk.scope.project == Select(structure.current) || sk.scope.project == Select(BuildRef(structure.current.build))
}
}