Sha256: ab8ee74781b940d22baa5bdbb64bbff0606d78a81e8d9e0cbe893a1acb08966a

Contents?: true

Size: 244 Bytes

Versions: 48

Compression:

Stored size: 244 Bytes

Contents

require "rubygems"
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

48 entries across 48 versions & 19 rubygems

Version Path
darkofabijan-webrat-0.6.1 spec/integration/sinatra/modular_app.rb
kbaum-webrat-0.5.1 spec/integration/sinatra/modular_app.rb
kbaum-webrat-0.6.1.pre spec/integration/sinatra/modular_app.rb
cynergy-webrat-0.6.0 spec/integration/sinatra/modular_app.rb
webrat-0.6.0 spec/integration/sinatra/modular_app.rb
radar-webrat-0.5.1.1 spec/integration/sinatra/modular_app.rb
radar-webrat-0.5.1 spec/integration/sinatra/modular_app.rb
sum-0.1.1 vendor/webrat/spec/integration/sinatra/modular_app.rb
mkuklis-webrat-0.5.1 spec/integration/sinatra/modular_app.rb
emipair-webrat-0.5.3 spec/integration/sinatra/modular_app.rb
honkster-webrat-0.6.0 spec/integration/sinatra/modular_app.rb
webrat-0.5.3 spec/integration/sinatra/modular_app.rb
webrat-0.5.1 spec/integration/sinatra/modular_app.rb
webrat-0.4.5 spec/integration/sinatra/modular_app.rb
webrat-0.5.0 spec/integration/sinatra/modular_app.rb
metry-2.0.4 vendor/webrat/spec/integration/sinatra/modular_app.rb
metry-2.0.5 vendor/webrat/spec/integration/sinatra/modular_app.rb
metry-2.1.0 vendor/webrat/spec/integration/sinatra/modular_app.rb
metry-2.1.1 vendor/webrat/spec/integration/sinatra/modular_app.rb
metry-2.0.0 vendor/webrat/spec/integration/sinatra/modular_app.rb