more slim tests. Targets #1327
parent
1c977a83e2
commit
05aa396399
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
- content_for :a do
|
||||
| Content A
|
||||
|
||||
| Content Main
|
||||
|
||||
- content_for :b do
|
||||
| Content B
|
|
@ -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
|
Loading…
Reference in New Issue