2012-05-24 19:14:17 -04:00
|
|
|
Feature: Ignoring paths
|
|
|
|
Scenario: Ignore with directory indexes (source file, build)
|
2013-05-08 14:37:55 -04:00
|
|
|
Given a fixture app "more-ignore-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
And a file named "config.rb" with:
|
|
|
|
"""
|
|
|
|
activate :directory_indexes
|
|
|
|
ignore 'about.html.erb'
|
|
|
|
ignore 'plain.html'
|
|
|
|
"""
|
2013-05-08 14:37:55 -04:00
|
|
|
And a successfully built app at "more-ignore-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
Then the following files should exist:
|
|
|
|
| build/index.html |
|
|
|
|
And the following files should not exist:
|
|
|
|
| build/about/index.html |
|
|
|
|
| build/plain/index.html |
|
|
|
|
|
|
|
|
Scenario: Ignore with directory indexes (source file, server)
|
2013-05-08 14:37:55 -04:00
|
|
|
Given a fixture app "more-ignore-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
And a file named "config.rb" with:
|
|
|
|
"""
|
|
|
|
activate :directory_indexes
|
|
|
|
ignore 'about.html.erb'
|
|
|
|
ignore 'plain.html'
|
|
|
|
"""
|
|
|
|
And the Server is running
|
|
|
|
When I go to "/index.html"
|
|
|
|
Then I should not see "File Not Found"
|
|
|
|
When I go to "/about/index.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/plain/index.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
|
|
|
|
Scenario: Ignore with directory indexes (output path splat, build)
|
2013-05-08 14:37:55 -04:00
|
|
|
Given a fixture app "more-ignore-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
And a file named "config.rb" with:
|
|
|
|
"""
|
|
|
|
activate :directory_indexes
|
|
|
|
ignore 'about*'
|
|
|
|
ignore 'plain*'
|
|
|
|
"""
|
2013-05-08 14:37:55 -04:00
|
|
|
And a successfully built app at "more-ignore-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
Then the following files should exist:
|
|
|
|
| build/index.html |
|
|
|
|
And the following files should not exist:
|
|
|
|
| build/about/index.html |
|
|
|
|
| build/plain/index.html |
|
|
|
|
|
|
|
|
Scenario: Ignore with directory indexes (output path splat, server)
|
2013-05-08 14:37:55 -04:00
|
|
|
Given a fixture app "more-ignore-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
And a file named "config.rb" with:
|
|
|
|
"""
|
|
|
|
activate :directory_indexes
|
|
|
|
ignore 'about*'
|
|
|
|
ignore 'plain*'
|
|
|
|
"""
|
|
|
|
And the Server is running
|
|
|
|
When I go to "/index.html"
|
|
|
|
Then I should not see "File Not Found"
|
|
|
|
When I go to "/about/index.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/plain/index.html"
|
|
|
|
Then I should see "File Not Found"
|