summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-17 19:50:01 +0200
committerAzul <azul@leap.se>2014-07-17 19:50:01 +0200
commit20352249fa5dafe3abb2d4b751b1e5c8c0a59abc (patch)
tree00b39da219151473437c02ce35344117bcd5b2fa /features
parent150c80bfc7c469b23f7ac1bac0e42014ad417df6 (diff)
fix messages feature to match latest response format
Diffstat (limited to 'features')
-rw-r--r--features/messages.feature20
1 files changed, 6 insertions, 14 deletions
diff --git a/features/messages.feature b/features/messages.feature
index 34c0892..69c5637 100644
--- a/features/messages.feature
+++ b/features/messages.feature
@@ -44,22 +44,16 @@ Feature: Receive messages for the user
Given there is a message for me with:
| id | 1a2b3c4d |
When I send a PUT request to "/1/messages/1a2b3c4d.json"
- Then the response status should be "200"
- And the response should be:
- """
- { "success": "marked as read",
- "message": "The message has been marked as read" }
- """
- And that message should be marked as read
+ Then that message should be marked as read
+ And the response status should be "200"
+ And the response should have "success" with "marked_as_read"
+ And the response should have "message"
Scenario: Message not found
When I send a PUT request to "/1/messages/1a2b3c4d.json"
Then the response status should be "404"
- And the response should be:
- """
- { "error": "not found",
- "message": "The message could not be found" }
- """
+ And the response should have "error" with "not_found"
+ And the response should have "message"
Scenario: Do not send read messages
Given there is a message for me
@@ -70,5 +64,3 @@ Feature: Receive messages for the user
"""
[]
"""
-
-