lib/sinatra/test/unit.rb in sinatra-0.3.3 vs lib/sinatra/test/unit.rb in sinatra-0.9.0
- old
+ new
@@ -1,13 +1,11 @@
+require 'sinatra/test'
require 'test/unit'
-require File.dirname(__FILE__) + '/methods'
-Test::Unit::TestCase.send(:include, Sinatra::Test::Methods)
+Test::Unit::TestCase.send :include, Sinatra::Test
-Sinatra::Application.default_options.merge!(
+Sinatra::Default.set(
:env => :test,
:run => false,
:raise_errors => true,
:logging => false
)
-
-Sinatra.application = nil