Skip to content

Commit

Permalink
Removed swagger2markup-spring-restdocs-ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Winkler committed Mar 29, 2016
1 parent f08859d commit 2c9e19c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion build.gradle
Expand Up @@ -46,7 +46,6 @@ dependencies {
compile gradleApi()
compile localGroovy()
compile ("io.github.swagger2markup:swagger2markup:1.0.0-SNAPSHOT")
testCompile ("io.github.swagger2markup:swagger2markup-spring-restdocs-ext:1.0.0-SNAPSHOT")
testCompile("org.spockframework:spock-core:1.0-groovy-2.3") {
exclude group: "org.codehaus.groovy"
}
Expand Down
Expand Up @@ -122,22 +122,4 @@ class Swagger2MarkupTaskSpec extends Specification{
String fileContents = new File(swagger2MarkupTask.outputDir, "paths.adoc").getText('UTF-8')
fileContents.contains("=== Pet")
}


def "Swagger2MarkupTask should include Spring Restdocs snippets"() {
given:
FileUtils.deleteQuietly(new File('build/asciidoc').absoluteFile);
Swagger2MarkupTask swagger2MarkupTask = (Swagger2MarkupTask) project.tasks.create(name: Swagger2MarkupPlugin.TASK_NAME, type: Swagger2MarkupTask) {
inputDir new File(INPUT_DIR).absoluteFile
outputDir new File('build/asciidoc').absoluteFile
config = ['swagger2markup.extensions.springRestDocs.snippetBaseUri' : SNIPPETS_DIR]
}
when:
swagger2MarkupTask.convertSwagger2markup()
then:
String fileContents = new File(swagger2MarkupTask.outputDir, "paths.adoc").getText('UTF-8')
fileContents.contains("curl 'http://localhost:8080/api/pet/'")
fileContents.contains("POST /api/pet/ HTTP/1.1")
fileContents.contains("HTTP/1.1 200 OK")
}
}

0 comments on commit 2c9e19c

Please sign in to comment.