lib/sinatra/test/unit.rb in bmizerany-sinatra-0.3.2 vs lib/sinatra/test/unit.rb in bmizerany-sinatra-0.8.9
- 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