From 494e3c9b514813cc57c8b043bcfbaa09f0bdcdd0 Mon Sep 17 00:00:00 2001 From: Alex Sanford Date: Tue, 17 Apr 2012 12:02:29 -0300 Subject: [PATCH] Fixed author page update scenario --- features/api/authorization/pages.feature | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/features/api/authorization/pages.feature b/features/api/authorization/pages.feature index 0e1028b4..02619255 100644 --- a/features/api/authorization/pages.feature +++ b/features/api/authorization/pages.feature @@ -170,7 +170,7 @@ Feature: Pages """ Scenario: Updating page as an Author - Given I have a "designer" token + Given I have a "author" token When I do an API PUT to pages/4f832c2cb0d86d3f42fffffe.json with: """ { @@ -179,4 +179,11 @@ Feature: Pages } } """ - Then the JSON response should be an access denied error + When I do an API GET request to pages/4f832c2cb0d86d3f42fffffe.json + Then the JSON response hash should contain: + """ + { + "id": "4f832c2cb0d86d3f42fffffe", + "title": "Brand new updated title" + } + """