Skip to content

Commit

Permalink
test displayName, compileReadme
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Dec 4, 2024
1 parent af84305 commit 7924f2a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class QuiltProductTest extends QuiltSpecification {
product.metadata != null
product.metadata.key == 'val'
product.metadata.key2 == 'val2'
product.displayName().replace('%2f', '/') == testURI
}

void 'should generate solid string for timestamp from now'() {
Expand All @@ -116,6 +117,7 @@ class QuiltProductTest extends QuiltSpecification {
!product.shouldSkip(QuiltProduct.KEY_SUMMARIZE)
!product.shouldSkip(QuiltProduct.KEY_README)
!product.shouldSkip(QuiltProduct.KEY_META)
product.compileReadme("msg")
}

void 'shouldSkip if key is false'() {
Expand All @@ -129,11 +131,12 @@ class QuiltProductTest extends QuiltSpecification {

expect:
product.shouldSkip(key)
product.compileReadme("test") == null

where:
key << [
// QuiltProduct.KEY_META,
// QuiltProduct.KEY_README,
QuiltProduct.KEY_META,
QuiltProduct.KEY_README,
QuiltProduct.KEY_SUMMARIZE
]
}
Expand All @@ -145,7 +148,7 @@ class QuiltProductTest extends QuiltSpecification {

then:
product.metadata
//product.metadata['cf_key'] == 'cf_val'
product.metadata['cf_key'] == 'cf_val'
product.metadata['key'] == 'val'
product.metadata['key2'] == 'val2'

Expand Down

0 comments on commit 7924f2a

Please sign in to comment.