Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created February 6, 2014 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xconnecting/8838620 to your computer and use it in GitHub Desktop.
Save xconnecting/8838620 to your computer and use it in GitHub Desktop.
[Spock] Pancoc characterization test 1
import spock.lang.Specification
class HeaderSpec extends Specification {
def "header characterization test"() {
when:
def proc = "pandoc header.md -o header.html".execute()
proc.waitFor()
then:
def result = new File("header.html").getText('UTF-8')
"" == result
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment