more slim tests. Targets #1327

remove_hooks
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