mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
3b491e00ab
* bug fixes * refactoring
16 lines
332 B
Ruby
16 lines
332 B
Ruby
require File.dirname(__FILE__) + '/../lib/sinatra'
|
|
|
|
%w(mocha test/spec).each do |library|
|
|
begin
|
|
require library
|
|
rescue
|
|
STDERR.puts "== Sinatra's tests need #{library} to run."
|
|
end
|
|
end
|
|
|
|
Sinatra::Server.running = true
|
|
Sinatra::Options.set_environment :test
|
|
|
|
class Test::Unit::TestCase
|
|
include Sinatra::TestMethods
|
|
end
|