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:
parent
1c977a83e2
commit
05aa396399
4 changed files with 29 additions and 0 deletions
|
@ -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
middleman-core/fixtures/slim-content-for-app/config.rb
Executable file
0
middleman-core/fixtures/slim-content-for-app/config.rb
Executable file
7
middleman-core/fixtures/slim-content-for-app/source/index.html.slim
Executable file
7
middleman-core/fixtures/slim-content-for-app/source/index.html.slim
Executable file
|
@ -0,0 +1,7 @@
|
|||
- content_for :a do
|
||||
| Content A
|
||||
|
||||
| Content Main
|
||||
|
||||
- content_for :b do
|
||||
| Content B
|
15
middleman-core/fixtures/slim-content-for-app/source/layouts/layout.slim
Executable file
15
middleman-core/fixtures/slim-content-for-app/source/layouts/layout.slim
Executable 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
|
Loading…
Reference in a new issue