From 05aa3963993676dbb806be1c1340d06298dbf647 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 4 Aug 2014 14:41:22 -0700 Subject: [PATCH] more slim tests. Targets #1327 --- middleman-core/features/slim.feature | 7 +++++++ .../fixtures/slim-content-for-app/config.rb | 0 .../slim-content-for-app/source/index.html.slim | 7 +++++++ .../source/layouts/layout.slim | 15 +++++++++++++++ 4 files changed, 29 insertions(+) create mode 100755 middleman-core/fixtures/slim-content-for-app/config.rb create mode 100755 middleman-core/fixtures/slim-content-for-app/source/index.html.slim create mode 100755 middleman-core/fixtures/slim-content-for-app/source/layouts/layout.slim diff --git a/middleman-core/features/slim.feature b/middleman-core/features/slim.feature index acf8b82c..2da2a324 100644 --- a/middleman-core/features/slim.feature +++ b/middleman-core/features/slim.feature @@ -20,6 +20,13 @@ Feature: Support slim templating language When I go to "/slim.html" Then I should see "

Welcome to Slim

" + Scenario: Slim Content For + Given the Server is running at "slim-content-for-app" + When I go to "/index.html" + Then I should see "Content for A:Content A" + Then I should see "Content for main:Content Main" + Then I should see "Content for B:Content AContent B" + Scenario: Rendering Scss in a Slim filter Given an empty app And a file named "config.rb" with: diff --git a/middleman-core/fixtures/slim-content-for-app/config.rb b/middleman-core/fixtures/slim-content-for-app/config.rb new file mode 100755 index 00000000..e69de29b diff --git a/middleman-core/fixtures/slim-content-for-app/source/index.html.slim b/middleman-core/fixtures/slim-content-for-app/source/index.html.slim new file mode 100755 index 00000000..8a61ffff --- /dev/null +++ b/middleman-core/fixtures/slim-content-for-app/source/index.html.slim @@ -0,0 +1,7 @@ +- content_for :a do + | Content A + +| Content Main + +- content_for :b do + | Content B diff --git a/middleman-core/fixtures/slim-content-for-app/source/layouts/layout.slim b/middleman-core/fixtures/slim-content-for-app/source/layouts/layout.slim new file mode 100755 index 00000000..160a7646 --- /dev/null +++ b/middleman-core/fixtures/slim-content-for-app/source/layouts/layout.slim @@ -0,0 +1,15 @@ +doctype html +html + body + .test + | Content for A: + == yield_content :a + br + + | Content for main: + == yield + br + + | Content for B: + == yield_content :b + br