Sha256: ea12631a9748877e9a4752e40137cbe7df467faaf456d26ae96850fc2449199a

Contents?: true

Size: 225 Bytes

Versions: 13

Compression:

Stored size: 225 Bytes

Contents

require "sinatra/base"

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

  get "/redirect_absolute_url" do
    redirect URI.join(request.url, "foo").to_s
  end

  get "/foo" do
    "spam"
  end
end

Version data entries

13 entries across 13 versions & 7 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/webrat-0.7.3/spec/integration/sinatra/modular_app.rb
indirect-webrat-0.7.5 spec/integration/sinatra/modular_app.rb
indirect-webrat-0.7.4 spec/integration/sinatra/modular_app.rb
webrat-0.7.3 spec/integration/sinatra/modular_app.rb
jbd-webrat-0.7.2.rails3 spec/integration/sinatra/modular_app.rb
webrat-0.7.2 spec/integration/sinatra/modular_app.rb
webrat-0.7.2.beta.2 spec/integration/sinatra/modular_app.rb
mutle-webrat-0.7.2.beta.1 spec/integration/sinatra/modular_app.rb
thoughtbot-webrat-0.7.2.pre spec/integration/sinatra/modular_app.rb
webrat-0.7.2.beta.1 spec/integration/sinatra/modular_app.rb
honkster-webrat-0.7.1.2 spec/integration/sinatra/modular_app.rb
honkster-webrat-0.7.1.1 spec/integration/sinatra/modular_app.rb
webrat-0.7.1 spec/integration/sinatra/modular_app.rb