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
davidtrogers-webrat-0.4.4.2 spec/integration/sinatra/modular_app.rb
diabolo-webrat-0.4.4.1 spec/integration/sinatra/modular_app.rb
diabolo-webrat-0.4.4.2 spec/integration/sinatra/modular_app.rb
diabolo-webrat-0.4.4 spec/integration/sinatra/modular_app.rb
diabolo-webrat-0.5.1 spec/integration/sinatra/modular_app.rb
dstrelau-webrat-0.5.1 spec/integration/sinatra/modular_app.rb
emipair-webrat-0.0.1 spec/integration/sinatra/modular_app.rb
hardbap-webrat-0.5.1 spec/integration/sinatra/modular_app.rb
hardbap-webrat-0.5.2 spec/integration/sinatra/modular_app.rb
raldred-webrat-0.4.4.2 spec/integration/sinatra/modular_app.rb
sr-webrat-0.4.4.1 spec/integration/sinatra/modular_app.rb
winton-sum-0.1.0 vendor/webrat/spec/integration/sinatra/modular_app.rb
winton-sum-0.1.1 vendor/webrat/spec/integration/sinatra/modular_app.rb
revo-webrat-0.7.0.1 spec/integration/sinatra/modular_app.rb
davidtrogers-webrat-0.7.0 spec/integration/sinatra/modular_app.rb
revo-webrat-0.7.0 spec/integration/sinatra/modular_app.rb
revo-webrat-0.7.1.pre spec/integration/sinatra/modular_app.rb
webrat-0.7.0 spec/integration/sinatra/modular_app.rb
honkster-webrat-0.6.0.10 spec/integration/sinatra/modular_app.rb
honkster-webrat-0.6.0.9 spec/integration/sinatra/modular_app.rb