1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

more slim tests. Targets #1327

This commit is contained in:
Thomas Reynolds 2014-08-04 14:41:22 -07:00
parent 1c977a83e2
commit 05aa396399
4 changed files with 29 additions and 0 deletions

View file

@ -20,6 +20,13 @@ Feature: Support slim templating language
When I go to "/slim.html"
Then I should see "<h1>Welcome to Slim</h1>"
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:

View file

@ -0,0 +1,7 @@
- content_for :a do
| Content A
| Content Main
- content_for :b do
| Content B

View file

@ -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