2009-11-23 00:37:11 +01:00
|
|
|
Feature: Custom layouts
|
|
|
|
In order easily switch between relative and absolute paths
|
|
|
|
|
|
|
|
Scenario: Using custom :layout attribute
|
|
|
|
Given page "/custom-layout.html" has layout "custom"
|
2011-07-24 07:53:17 +02:00
|
|
|
And the Server is running
|
2009-11-23 00:37:11 +01:00
|
|
|
When I go to "/custom-layout.html"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
|
|
|
|
Scenario: Using with_layout block
|
|
|
|
Given "/custom-layout.html" with_layout block has layout "custom"
|
2011-07-24 07:53:17 +02:00
|
|
|
And the Server is running
|
2009-11-23 00:37:11 +01:00
|
|
|
When I go to "/custom-layout.html"
|
2011-04-22 20:48:48 +02:00
|
|
|
Then I should see "Custom Layout"
|
|
|
|
|
|
|
|
Scenario: Using custom :layout attribute with folders
|
|
|
|
Given page "/custom-layout-dir/" has layout "custom"
|
2011-07-24 07:53:17 +02:00
|
|
|
And the Server is running
|
2011-04-22 20:48:48 +02:00
|
|
|
When I go to "/custom-layout-dir"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
When I go to "/custom-layout-dir/"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
When I go to "/custom-layout-dir/index.html"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
|
|
|
|
Scenario: Using custom :layout attribute with folders
|
|
|
|
Given page "/custom-layout-dir" has layout "custom"
|
2011-07-24 07:53:17 +02:00
|
|
|
And the Server is running
|
2011-04-22 20:48:48 +02:00
|
|
|
When I go to "/custom-layout-dir"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
When I go to "/custom-layout-dir/"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
When I go to "/custom-layout-dir/index.html"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
|
|
|
|
Scenario: Using custom :layout attribute with folders
|
|
|
|
Given page "/custom-layout-dir/index.html" has layout "custom"
|
2011-07-24 07:53:17 +02:00
|
|
|
And the Server is running
|
2011-04-22 20:48:48 +02:00
|
|
|
When I go to "/custom-layout-dir"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
When I go to "/custom-layout-dir/"
|
|
|
|
Then I should see "Custom Layout"
|
|
|
|
When I go to "/custom-layout-dir/index.html"
|
2009-11-23 00:37:11 +01:00
|
|
|
Then I should see "Custom Layout"
|