Skip to content

Commit 4f1b591

Browse files
committed
Fix PdfBuilder test
1 parent 7027cfa commit 4f1b591

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

grails-docs/src/test/groovy/grails/doc/internal/PublishPDFSpec.groovy renamed to grails-docs/src/test/groovy/grails/doc/PdfBuilderSpec.groovy

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
package grails.doc.internal
1+
package grails.doc
22

3-
import grails.doc.PdfBuilder
43
import spock.lang.Specification
54

6-
class PublishPDFSpec extends Specification {
7-
8-
void "generate pdf from docs"() {
9-
when:
10-
System.setProperty('grails.docs.clean.html','true')
11-
String pdfName = 'single.pdf'
12-
def outputDir = new File('/Users/sdelamo/git/grails/grails-doc/build/docs')
13-
def currFile = new File(outputDir, "guide/single.html")
14-
def pdfBuilder = new PdfBuilder()
15-
def xml = pdfBuilder.createXml(currFile, outputDir.absolutePath)
16-
pdfBuilder.createPdf(xml,
17-
new File(currFile.parentFile, pdfName),
18-
new File(outputDir, "guide/single.html"))
19-
20-
then:
21-
noExceptionThrown()
22-
}
5+
class PdfBuilderSpec extends Specification {
236

247
void "remove CssLinks"() {
258
given:

0 commit comments

Comments
 (0)