Merge pull request #112 from Codearte/tech/#111-added-priority-in-tests-for-sample-project

Added priority to the sample project DSL and test.
This commit is contained in:
Olga Maciaszek-Sharma
2015-08-05 17:10:53 +02:00
2 changed files with 2 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ class BasicFunctionalSpec extends IntegrationSpec {
def generatedClientJsonStub = file(GENERATED_CLIENT_JSON_STUB).text
new JsonSlurper().parseText(generatedClientJsonStub) == new JsonSlurper().parseText("""
{
"priority: 2",
"request": {
"method": "PUT",
"headers": {

View File

@@ -1,4 +1,5 @@
io.codearte.accurest.dsl.GroovyDsl.make {
priority 2
request {
method 'PUT'
url '/api/12'