Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Jan 10, 2019
1 parent 5282c95 commit f9d222f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ Ein Post Objekt hat die folgenden Attribute
+ data (object)
+ type: `comments` (string)
+ attributes (object)
+ `content`: ` ` (string) - Der Comment-Inhalt
+ `content`: (string) - Der Comment-Inhalt

+ Response 400 (application/vnd.api+json)

Expand Down
6 changes: 3 additions & 3 deletions errors.apib
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Hier werden Fehler und Fehlermeldungen der API getestet.
+ type: `posts` (string)
+ attributes (object)
+ `title`: `The post title` (string) - Der Title, kann auch leer sein
+ `content`: `` (string) - Der Post-Inhalt
+ `content`: (string) - Der Post-Inhalt
+ `view_allowed_for`: `users` (string) - Wer kann diesen Post sehen? (`all`, `users`, `friends` oder `authors`)
+ `comments_allowed`: true (boolean) - Kann dieser Post kommentiert werden?

Expand Down Expand Up @@ -369,7 +369,7 @@ Hier werden Fehler und Fehlermeldungen der API getestet.

+ Attributes (Forbidden Error)

## Create Comment with content errors [/posts/d5a5a2c3-041b-4985-907c-74a2131efc98/comments]
## Create Comment with content errors [/posts/25a5a2c3-041b-4985-907c-74a2131efc98/comments]

### Create a comment with empty content [POST]
+ Request (application/vnd.api+json)
Expand All @@ -383,7 +383,7 @@ Hier werden Fehler und Fehlermeldungen der API getestet.
+ data (object)
+ type: `comments` (string)
+ attributes (object)
+ `content`: `` (string) - Der Comment-Inhalt
+ `content`: (string) - Der Comment-Inhalt

+ Response 400 (application/vnd.api+json)

Expand Down
4 changes: 2 additions & 2 deletions features/core/objects_comments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Scenario: Create a comment with empty content
"""
{"data":{"type":"comments","attributes":{"content":""}}}
"""
When I request "POST /posts/d5a5a2c3-041b-4985-907c-74a2131efc98/comments"
When I request "POST /posts/25a5a2c3-041b-4985-907c-74a2131efc98/comments"
Then I get a "400" response
And the correct headers are set
And the "errors" property exists
Expand All @@ -151,7 +151,7 @@ Scenario: Create a comment with missing content
"""
{"data":{"type":"comments","attributes":{}}}
"""
When I request "POST /posts/d5a5a2c3-041b-4985-907c-74a2131efc98/comments"
When I request "POST /posts/25a5a2c3-041b-4985-907c-74a2131efc98/comments"
Then I get a "400" response
And the correct headers are set
And the "errors" property exists
Expand Down

0 comments on commit f9d222f

Please sign in to comment.