From 4b9f5771c20d883d3773faf157215b75ad562f96 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 15 Dec 2011 16:36:57 -0800 Subject: [PATCH] fix directory indexes tests --- features/directory_index.feature | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/features/directory_index.feature b/features/directory_index.feature index 72e76921..9f74daac 100644 --- a/features/directory_index.feature +++ b/features/directory_index.feature @@ -2,16 +2,23 @@ Feature: Directory Index In order output Apache-friendly directories and indexes Scenario: Checking built folder for content - Given a built app at "indexable-app" - Then "needs_index/index.html" should exist at "indexable-app" and include "Indexable" - Then "a_folder/needs_index/index.html" should exist at "indexable-app" and include "Indexable" - Then "leave_me_alone.html" should exist at "indexable-app" and include "Stay away" - Then "regular/index.html" should exist at "indexable-app" and include "Regular" - Then "regular/index/index.html" should not exist at "indexable-app" - Then "needs_index.html" should not exist at "indexable-app" - Then "a_folder/needs_index.html" should not exist at "indexable-app" - Then "leave_me_alone/index.html" should not exist at "indexable-app" - Then ".htaccess" should exist at "indexable-app" + Given a successfully built app at "indexable-app" + When I cd to "build" + Then the following files should exist: + | needs_index/index.html | + | a_folder/needs_index/index.html | + | leave_me_alone.html | + | regular/index.html | + | .htaccess | + Then the following files should not exist: + | egular/index/index.html | + | needs_index.html | + | a_folder/needs_index.html | + | leave_me_alone/index.html | + And the file "needs_index/index.html" should contain "Indexable" + And the file "a_folder/needs_index/index.html" should contain "Indexable" + And the file "leave_me_alone.html" should contain "Stay away" + And the file "regular/index.html" should contain "Regular" Scenario: Preview normal file Given the Server is running at "indexable-app"