mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
parent
58999f5f9f
commit
0209a2c721
2 changed files with 2 additions and 6 deletions
|
@ -40,10 +40,6 @@ class TestApp < Sinatra::Base
|
|||
"Current host is #{request.scheme}://#{request.host}:#{request.port}"
|
||||
end
|
||||
|
||||
post '/host' do
|
||||
"Current host is #{request.scheme}://#{request.host}:#{request.port}"
|
||||
end
|
||||
|
||||
get '/redirect/:times/times' do
|
||||
times = params[:times].to_i
|
||||
if times.zero?
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<a href="<%= params[:absolute_host] %>/host">Absolute Host</a>
|
||||
</p>
|
||||
|
||||
<form action="/host" method="post">
|
||||
<form action="/host">
|
||||
<p><input type="submit" value="Relative Host"/></p>
|
||||
</form>
|
||||
|
||||
<form action="<%= params[:absolute_host] %>/host" method="post">
|
||||
<form action="<%= params[:absolute_host] %>/host">
|
||||
<p><input type="submit" value="Absolute Host"/></p>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue