test nested partials_dir
This commit is contained in:
parent
fe20d92b28
commit
cf1f6a0957
|
@ -1,5 +1,5 @@
|
||||||
Feature: Partials dir
|
Feature: Partials dir
|
||||||
Scenario: Find partials in the custom partials dir
|
Scenario: Find partials in a custom partials dir
|
||||||
Given a fixture app "partials-dir-app"
|
Given a fixture app "partials-dir-app"
|
||||||
And a file named "config.rb" with:
|
And a file named "config.rb" with:
|
||||||
"""
|
"""
|
||||||
|
@ -9,6 +9,16 @@ Feature: Partials dir
|
||||||
When I go to "/index.html"
|
When I go to "/index.html"
|
||||||
Then I should see "contents of the partial"
|
Then I should see "contents of the partial"
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
Scenario: Find partials in the default partials dir
|
Scenario: Find partials in the default partials dir
|
||||||
Given a fixture app "default-partials-dir-app"
|
Given a fixture app "default-partials-dir-app"
|
||||||
And a file named "config.rb" with:
|
And a file named "config.rb" with:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
contents of the nested partial
|
Loading…
Reference in a new issue