vendor/sinatra/lib/sinatra/test/unit.rb in relevance-castronaut-0.5.4 vs vendor/sinatra/lib/sinatra/test/unit.rb in relevance-castronaut-0.6.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