From 104abe71dd3c6655aa6d2fbb96e8a6228a480171 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 15 Dec 2011 16:40:07 -0800 Subject: [PATCH] fix fonts test --- features/dynamic_pages.feature | 4 +--- features/fonts.feature | 7 +++++-- features/sprockets.feature | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/features/dynamic_pages.feature b/features/dynamic_pages.feature index f6d750a7..c55e963a 100644 --- a/features/dynamic_pages.feature +++ b/features/dynamic_pages.feature @@ -2,9 +2,7 @@ Feature: Dynamic Pages In order to use a single view to generate multiple output files Scenario: Checking built folder for content - Given a built app at "test-app" - Then a directory named "build" should exist - + Given a successfully built app at "test-app" When I cd to "build" Then the following files should exist: | fake.html | diff --git a/features/fonts.feature b/features/fonts.feature index 1c673b28..b839a346 100644 --- a/features/fonts.feature +++ b/features/fonts.feature @@ -1,8 +1,11 @@ Feature: Web Fonts Scenario: Checking built folder for content - Given a built app at "fonts-app" - Then "stylesheets/fonts.css" should exist at "fonts-app" and include "/fonts/StMarie-Thin.otf" + Given a successfully built app at "fonts-app" + When I cd to "build" + Then the following files should exist: + | stylesheets/fonts.css | + And the file "stylesheets/fonts.css" should contain "/fonts/StMarie-Thin.otf" Scenario: Rendering scss Given the Server is running at "fonts-app" diff --git a/features/sprockets.feature b/features/sprockets.feature index 92af2704..debd034f 100644 --- a/features/sprockets.feature +++ b/features/sprockets.feature @@ -21,7 +21,7 @@ Feature: Sprockets Then I should see "Hello One" Scenario: Multiple engine files should build correctly - Given a built app at "test-app" + Given a successfully built app at "test-app" When I cd to "build" Then a file named "javascripts/multiple_engines.js" should exist And the file "javascripts/multiple_engines.js" should contain "Hello One"