mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
15 lines
No EOL
227 B
Ruby
15 lines
No EOL
227 B
Ruby
class TestApp < Sinatra::Base
|
|
set :views, File.dirname(__FILE__) + '/views'
|
|
|
|
get '/' do
|
|
'Hello world!'
|
|
end
|
|
|
|
get '/foo' do
|
|
'Another World'
|
|
end
|
|
|
|
get '/with_simple_html' do
|
|
erb :with_simple_html
|
|
end
|
|
end |