Feature: Meta redirects
Scenario: Redirect to unknown file
Given a fixture app "large-build-app"
And a file named "config.rb" with:
"""
redirect "hello.html", :to => "world.html"
"""
And the Server is running at "large-build-app"
When I go to "/hello.html"
Then I should see ' "http://example.com"
"""
And the Server is running at "large-build-app"
When I go to "/hello.html"
Then I should see ' r
end
"""
And the Server is running at "large-build-app"
When I go to "/hello.html"
Then I should see ' "link_test.html"
redirect "hello2.html", :to => "services/index.html"
"""
And the Server is running at "large-build-app"
When I go to "/hello/index.html"
Then I should see ' "world.html" do |from, to|
"#{from} to #{to}"
end
"""
And the Server is running at "large-build-app"
When I go to "/hello.html"
Then I should see 'hello.html to world.html'