File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
grails-docs/src/test/groovy/grails/doc Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change 1- package grails.doc.internal
1+ package grails.doc
22
3- import grails.doc.PdfBuilder
43import 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 :
You can’t perform that action at this time.
0 commit comments