teamcapybara--capybara/spec/test_app.rb

19 lines
275 B
Ruby
Raw Normal View History

2009-11-04 22:32:35 +00:00
class TestApp < Sinatra::Base
set :views, File.dirname(__FILE__) + '/views'
get '/' do
'Hello world!'
end
get '/foo' do
'Another World'
end
2009-11-04 23:34:11 +00:00
get '/with_html' do
erb :with_html
end
2009-11-04 22:32:35 +00:00
get '/with_simple_html' do
erb :with_simple_html
end
end