fix codenarc conventions
MODIFY
asciidoctorj-distribution/src/test/groovy/org/asciidoctor/diagram/WhenDitaaDiagramIsRendered.groovy
asciidoctorj-distribution/src/test/groovy/org/asciidoctor/diagram/WhenDitaaDiagramIsRendered.groovy
@@ -27,7 +27,7 @@ class WhenDitaaDiagramIsRendered extends Specification {
given:
String imageFileName = UUID.randomUUID()
- File imagesOutDir = new File(testFolder.root, "images-dir")
+ File imagesOutDir = new File(testFolder.root, 'images-dir')
def createdCacheImage = new File(testFolder.root, ".asciidoctor/diagram/${imageFileName}.png.cache")
String document = """= Document Title
@@ -52,12 +52,12 @@ Hello World
.toDir(testFolder.root)
.safe(SafeMode.UNSAFE)
.attributes(AttributesBuilder.attributes()
- .attribute('imagesdir', imagesOutDir.getName())
+ .attribute('imagesdir', imagesOutDir.name)
.attribute('outdir', testFolder.root.absolutePath)))
then:
- result.contains("""src="${imagesOutDir.getName()}/${imageFileName}.png""")
+ result.contains("""src="${imagesOutDir.name}/${imageFileName}.png""")
new File(imagesOutDir, "${imageFileName}.png").exists()
createdCacheImage.exists()

fix codenarc conventions