From b1d6b9430263a8d2a4a236875e4a24c90a717835 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 26 Apr 2012 16:21:53 -0700 Subject: [PATCH] Fixture-less slim --- middleman-more/features/slim.feature | 16 +++++++++++++++- middleman-more/fixtures/slim-app/config.rb | 1 - .../fixtures/slim-app/source/slim.html.slim | 7 ------- 3 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 middleman-more/fixtures/slim-app/config.rb delete mode 100644 middleman-more/fixtures/slim-app/source/slim.html.slim diff --git a/middleman-more/features/slim.feature b/middleman-more/features/slim.feature index 5bf03d37..e2f203b2 100644 --- a/middleman-more/features/slim.feature +++ b/middleman-more/features/slim.feature @@ -2,6 +2,20 @@ Feature: Support slim templating language In order to offer an alternative to Haml Scenario: Rendering Slim - Given the Server is running at "slim-app" + Given an empty app + And a file named "config.rb" with: + """ + """ + And a file named "source/slim.html.slim" with: + """ + doctype 5 + html lang='en' + head + meta charset="utf-8" + + body + h1 Welcome to Slim + """ + And the Server is running at "empty_app" When I go to "/slim.html" Then I should see "

Welcome to Slim

" \ No newline at end of file diff --git a/middleman-more/fixtures/slim-app/config.rb b/middleman-more/fixtures/slim-app/config.rb deleted file mode 100644 index 39f9e64d..00000000 --- a/middleman-more/fixtures/slim-app/config.rb +++ /dev/null @@ -1 +0,0 @@ -require "slim" \ No newline at end of file diff --git a/middleman-more/fixtures/slim-app/source/slim.html.slim b/middleman-more/fixtures/slim-app/source/slim.html.slim deleted file mode 100644 index e13e5b60..00000000 --- a/middleman-more/fixtures/slim-app/source/slim.html.slim +++ /dev/null @@ -1,7 +0,0 @@ -doctype 5 -html lang='en' - head - meta charset="utf-8" - - body - h1 Welcome to Slim \ No newline at end of file