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

31 lines
899 B
Gherkin
Raw Normal View History

2013-04-08 03:39:03 -04:00
Feature: Partials dir
2013-04-09 02:45:34 -04:00
Scenario: Find partials in a custom partials dir
2013-04-08 03:39:03 -04:00
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"
2013-04-09 02:45:34 -04:00
Scenario: Find partials in a nested custom partials dir
Given a fixture app "partials-dir-app"
And a file named "config.rb" with:
"""
set :partials_dir, 'nested/partials'
"""
And the Server is running
When I go to "/index.html"
Then I should see "contents of the nested partial"
2013-04-08 03:39:03 -04:00
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"