feature #14: create route for unfollow article

This commit is contained in:
2019-08-14 22:49:01 +02:00
parent 17746d9b1e
commit 9821833dd8
3 changed files with 28 additions and 5 deletions

View File

@@ -1,11 +1,17 @@
Feature: follow routes
Scenario: The route for follow article must response a 200 and return object
Scenario: The route for follow article must response a 201 and return object
Given I have citizen:
| id | 64b7b379-2298-43ec-b428-ba134930cabd |
| firstName | Jaque |
| lastName | Dupuis |
When I send a "POST" request to "/articles/9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b/follow" with body:
"""
"""
Then the response status code should be 201
When I send a "POST" request to "/articles/9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b/follow"
Then the response status code should be 201
Scenario: The route for unfollow article must response a 204
Given I have citizen:
| id | 64b7b379-2298-43ec-b428-ba134930cabd |
| firstName | Jaque |
| lastName | Dupuis |
When I send a "DELETE" request to "/articles/9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b/follow"
Then the response status code should be 204