2010-09-06 19:59:51 +02:00
|
|
|
Feature: Built-in auto_stylesheet_link_tag view helper
|
|
|
|
In order to simplify including css files
|
|
|
|
|
|
|
|
Scenario: Viewing the root path
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "auto-css-app"
|
2010-09-06 19:59:51 +02:00
|
|
|
When I go to "/auto-css.html"
|
|
|
|
Then I should see "stylesheets/auto-css.css"
|
|
|
|
|
2013-11-29 23:57:35 +01:00
|
|
|
Scenario: Viewing the root path (build mode)
|
|
|
|
Given a successfully built app at "auto-css-app"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| auto-css.html |
|
|
|
|
And the file "auto-css.html" should contain "stylesheets/auto-css.css"
|
|
|
|
|
2010-09-06 19:59:51 +02:00
|
|
|
Scenario: Viewing a tier-1 path
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "auto-css-app"
|
2011-06-22 21:13:35 +02:00
|
|
|
When I go to "/auto-css/auto-css.html"
|
|
|
|
Then I should see "stylesheets/auto-css/auto-css.css"
|
|
|
|
|
2013-11-29 23:57:35 +01:00
|
|
|
Scenario: Viewing a tier-1 path (build mode)
|
|
|
|
Given a successfully built app at "auto-css-app"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| auto-css/auto-css.html |
|
|
|
|
And the file "auto-css/auto-css.html" should contain "stylesheets/auto-css/auto-css.css"
|
|
|
|
|
2011-06-22 21:13:35 +02:00
|
|
|
Scenario: Viewing the index file of a tier-1 path, without filename
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "auto-css-app"
|
2011-06-22 21:13:35 +02:00
|
|
|
When I go to "/auto-css"
|
|
|
|
Then I should see "stylesheets/auto-css/index.css"
|
|
|
|
|
|
|
|
Scenario: Viewing the index file of a tier-1 path, without filename, with a trailing slash
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "auto-css-app"
|
2011-06-22 21:13:35 +02:00
|
|
|
When I go to "/auto-css/"
|
|
|
|
Then I should see "stylesheets/auto-css/index.css"
|
2010-09-06 19:59:51 +02:00
|
|
|
|
|
|
|
Scenario: Viewing a tier-2 path
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "auto-css-app"
|
2011-06-22 21:13:35 +02:00
|
|
|
When I go to "/auto-css/sub/auto-css.html"
|
|
|
|
Then I should see "stylesheets/auto-css/sub/auto-css.css"
|
2013-11-29 23:57:35 +01:00
|
|
|
|
|
|
|
Scenario: Viewing a tier-2 path (build mode)
|
|
|
|
Given a successfully built app at "auto-css-app"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| auto-css/sub/auto-css.html |
|
|
|
|
And the file "auto-css/sub/auto-css.html" should contain "stylesheets/auto-css/sub/auto-css.css"
|