Split Entities for remove nullable variables
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
Feature: comment Constitution
|
||||
|
||||
Scenario: Can comment an constitution
|
||||
Given I am authenticated as John Doe with id "64b7b379-2298-43ec-b428-ba134930cabd"
|
||||
And I have constitution with id "9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b"
|
||||
When I send a POST request to "/constitutions/9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b/comments" with body:
|
||||
Given I am authenticated as John Toe with id "a6eb1f5a-8c02-42f4-8e8e-a722f26841ef"
|
||||
And I have constitution with id "d7e20f0b-3fdd-4638-817a-bbd87054eb82" created by "john-toe"
|
||||
When I send a POST request to "/constitutions/d7e20f0b-3fdd-4638-817a-bbd87054eb82/comments" with body:
|
||||
"""
|
||||
Hello mister
|
||||
"""
|
||||
|
||||
@@ -32,7 +32,6 @@ Feature: constitution routes
|
||||
"id":"64b7b379-2298-43ec-b428-ba134930cabd"
|
||||
},
|
||||
"created_at":null,
|
||||
"version_id":"3311a7af-2a62-4e31-b4cd-889f8ead9737",
|
||||
"version_number":null
|
||||
}
|
||||
"""
|
||||
|
||||
@@ -37,7 +37,7 @@ Feature: vote Article
|
||||
And the response should contain object:
|
||||
| [0].note | 1 |
|
||||
|
||||
Scenario: Can vote a comment on article
|
||||
Scenario: Can vote a comment
|
||||
Given I am authenticated as John Doe with id "64b7b379-2298-43ec-b428-ba134930cabd"
|
||||
And I have comment "ea5c9e87-c99e-4646-a381-2910219e077f" on article "cc9c624e-a27e-42de-af78-ae821c657a68"
|
||||
When I send a PUT request to "/comments/ea5c9e87-c99e-4646-a381-2910219e077f/vote" with body:
|
||||
|
||||
Reference in New Issue
Block a user