Add specific test for #1556

This commit is contained in:
Thomas Reynolds 2016-03-18 10:37:02 -07:00
parent dfa389bde4
commit d22bd914ae
3 changed files with 20 additions and 12 deletions

View file

@ -31,6 +31,7 @@ Feature: Dynamic Pages
| should_be_ignored6.html | | should_be_ignored6.html |
| should_be_ignored7.html | | should_be_ignored7.html |
| should_be_ignored8.html | | should_be_ignored8.html |
| should_be_ignored9.html |
Scenario: Preview basic proxy Scenario: Preview basic proxy
Given the Server is running at "dynamic-pages-app" Given the Server is running at "dynamic-pages-app"
@ -131,3 +132,5 @@ Feature: Dynamic Pages
Then I should see "File Not Found" Then I should see "File Not Found"
When I go to "/should_be_ignored8.html" When I go to "/should_be_ignored8.html"
Then I should see "File Not Found" Then I should see "File Not Found"
When I go to "/should_be_ignored9.html"
Then I should see "File Not Found"

View file

@ -28,3 +28,7 @@ page "fake/*", locals: { glob_var: "I am one glob" }
page "fake2/*", locals: { glob_var: "I am two glob" } page "fake2/*", locals: { glob_var: "I am two glob" }
page "fake3/*", locals: { glob_var: "I am three glob" } page "fake3/*", locals: { glob_var: "I am three glob" }
page "fake4/*", locals: { glob_var: "I am four glob" } page "fake4/*", locals: { glob_var: "I am four glob" }
["tom", "dick", "harry"].each do |name|
proxy "/about/#{name}.html", "/should_be_ignored9.html", locals: { person_name: name }, ignore: true
end

View file

@ -0,0 +1 @@
<h1>Ignore me! 9</h1>