-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ben Sherman <[email protected]>
- Loading branch information
1 parent
c53cdc2
commit 01b9c52
Showing
3 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ package nextflow.config | |
|
||
import nextflow.exception.AbortOperationException | ||
import spock.lang.Specification | ||
|
||
import static nextflow.config.Manifest.ContributionType | ||
/** | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
|
@@ -35,12 +37,13 @@ class ManifestTest extends Specification { | |
affiliation: 'University', | ||
email: '[email protected]', | ||
contribution: ['author', 'maintainer'], | ||
orcid: 'https://orcid.org/0000-0000-0000-0000' | ||
], | ||
[ | ||
name: 'Bob', | ||
affiliation: 'Company', | ||
email: '[email protected]', | ||
contribution: ['maintainer'], | ||
contribution: ['contributor'], | ||
] | ||
], | ||
nextflowVersion: '1.2.3', | ||
|
@@ -54,20 +57,16 @@ class ManifestTest extends Specification { | |
def manifest = new Manifest(MAN) | ||
then: | ||
manifest.author == 'pablo' | ||
manifest.contributors == [ | ||
new Manifest.Contributor([ | ||
name: 'Alice', | ||
affiliation: 'University', | ||
email: '[email protected]', | ||
contribution: ['author', 'maintainer'], | ||
]), | ||
new Manifest.Contributor([ | ||
name: 'Bob', | ||
affiliation: 'Company', | ||
email: '[email protected]', | ||
contribution: ['maintainer'], | ||
]) | ||
] | ||
manifest.contributors.size() == 2 | ||
manifest.contributors[0].name == 'Alice' | ||
manifest.contributors[0].affiliation == 'University' | ||
manifest.contributors[0].email == '[email protected]' | ||
manifest.contributors[0].contribution == [ContributionType.AUTHOR, ContributionType.MAINTAINER] as Set | ||
manifest.contributors[0].orcid == 'https://orcid.org/0000-0000-0000-0000' | ||
manifest.contributors[1].name == 'Bob' | ||
manifest.contributors[1].affiliation == 'Company' | ||
manifest.contributors[1].email == '[email protected]' | ||
manifest.contributors[1].contribution == [ContributionType.CONTRIBUTOR] as Set | ||
manifest.nextflowVersion == '1.2.3' | ||
manifest.name == 'foo' | ||
manifest.organisation == 'My Organisation' | ||
|