Sha256: a31c2a542f88763e7e8c968fb90b13adc1a73e9753e61868d27e0945a3ae961e

Contents?: true

Size: 329 Bytes

Versions: 21

Compression:

Stored size: 329 Bytes

Contents

require "rubygems"
require "sinatra/base"

class SampleApp < Sinatra::Default
  get "/" do
    "Hello World"
  end

  get "/internal_redirect" do
    redirect URI.join(request.url, "redirected").to_s
  end

  get "/external_redirect" do
    redirect "http://example.tst/"
  end

  get "/redirected" do
    "Redirected"
  end
end

Version data entries

21 entries across 21 versions & 12 rubygems

Version Path
diabolo-webrat-0.5.1 spec/integration/mechanize/sample_app.rb
dstrelau-webrat-0.5.1 spec/integration/mechanize/sample_app.rb
revo-webrat-0.7.0.1 spec/integration/mechanize/sample_app.rb
davidtrogers-webrat-0.7.0 spec/integration/mechanize/sample_app.rb
revo-webrat-0.7.0 spec/integration/mechanize/sample_app.rb
revo-webrat-0.7.1.pre spec/integration/mechanize/sample_app.rb
webrat-0.7.0 spec/integration/mechanize/sample_app.rb
honkster-webrat-0.6.0.10 spec/integration/mechanize/sample_app.rb
honkster-webrat-0.6.0.9 spec/integration/mechanize/sample_app.rb
darkofabijan-webrat-0.6.1 spec/integration/mechanize/sample_app.rb
kbaum-webrat-0.5.1 spec/integration/mechanize/sample_app.rb
kbaum-webrat-0.6.1.pre spec/integration/mechanize/sample_app.rb
cynergy-webrat-0.6.0 spec/integration/mechanize/sample_app.rb
webrat-0.6.0 spec/integration/mechanize/sample_app.rb
radar-webrat-0.5.1.1 spec/integration/mechanize/sample_app.rb
radar-webrat-0.5.1 spec/integration/mechanize/sample_app.rb
mkuklis-webrat-0.5.1 spec/integration/mechanize/sample_app.rb
emipair-webrat-0.5.3 spec/integration/mechanize/sample_app.rb
honkster-webrat-0.6.0 spec/integration/mechanize/sample_app.rb
webrat-0.5.3 spec/integration/mechanize/sample_app.rb