1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/test_app.rb

24 lines
329 B
Ruby
Raw Normal View History

2009-11-04 17:32:35 -05:00
class TestApp < Sinatra::Base
2009-11-05 11:35:45 -05:00
set :root, File.dirname(__FILE__)
set :static, true
2009-11-04 17:32:35 -05:00
get '/' do
'Hello world!'
end
get '/foo' do
'Another World'
end
2009-11-04 18:34:11 -05:00
get '/with_html' do
erb :with_html
end
2009-11-04 17:32:35 -05:00
2009-11-05 11:35:45 -05:00
get '/with_js' do
erb :with_js
end
2009-11-04 17:32:35 -05:00
get '/with_simple_html' do
erb :with_simple_html
end
end