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

Make it possible to run test app on its own

This commit is contained in:
Jonas Nicklas 2009-11-09 23:09:51 +01:00
parent 0a3767df0a
commit b905699cd7
2 changed files with 7 additions and 2 deletions

View file

@ -3,8 +3,6 @@ $:.unshift(File.dirname(__FILE__))
require 'rubygems'
require 'webcat'
require 'sinatra/base'
require 'rack'
require 'test_app'
require 'drivers_spec'
require 'session_spec'

View file

@ -1,3 +1,6 @@
require 'sinatra/base'
require 'rack'
class TestApp < Sinatra::Base
set :root, File.dirname(__FILE__)
set :static, true
@ -30,3 +33,7 @@ class TestApp < Sinatra::Base
params[:form].to_yaml
end
end
if __FILE__ == $0
Rack::Handler::Mongrel.run TestApp, :Port => 8070
end