mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
feature for partials_dir setting
This commit is contained in:
parent
91e7033d54
commit
fe20d92b28
5 changed files with 26 additions and 0 deletions
20
middleman-more/features/partials_dir.feature
Normal file
20
middleman-more/features/partials_dir.feature
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
Feature: Partials dir
|
||||||
|
Scenario: Find partials in the custom partials dir
|
||||||
|
Given a fixture app "partials-dir-app"
|
||||||
|
And a file named "config.rb" with:
|
||||||
|
"""
|
||||||
|
set :partials_dir, 'partials'
|
||||||
|
"""
|
||||||
|
And the Server is running
|
||||||
|
When I go to "/index.html"
|
||||||
|
Then I should see "contents of the partial"
|
||||||
|
|
||||||
|
Scenario: Find partials in the default partials dir
|
||||||
|
Given a fixture app "default-partials-dir-app"
|
||||||
|
And a file named "config.rb" with:
|
||||||
|
"""
|
||||||
|
"""
|
||||||
|
And the Server is running
|
||||||
|
When I go to "/index.html"
|
||||||
|
Then I should see "contents of the partial"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
contents of the partial
|
|
@ -0,0 +1,2 @@
|
||||||
|
<%= partial 'partial' %>
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
<%= partial 'partial' %>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
contents of the partial
|
Loading…
Reference in a new issue