test/unit/sinatra_app_tests.rb in deas-0.24.1 vs test/unit/sinatra_app_tests.rb in deas-0.25.0

- old
+ new

@@ -1,16 +1,17 @@ require 'assert' require 'sinatra/base' require 'test/support/view_handlers' require 'deas/route_proxy' require 'deas/route' +require 'deas/router' require 'deas/server' require 'deas/sinatra_app' module Deas::SinatraApp - class BaseTests < Assert::Context + class UnitTests < Assert::Context desc "Deas::SinatraApp" setup do proxy = Deas::RouteProxy.new('TestViewHandler') @route = Deas::Route.new(:get, '/something', proxy) @router = Deas::Router.new @@ -49,9 +50,10 @@ assert_equal false, settings.method_override assert_equal false, settings.sessions assert_equal true, settings.static assert_equal true, settings.reload_templates assert_instance_of Deas::NullLogger, settings.logger + assert_instance_of Deas::Router, settings.router # settings that are set but can't be changed assert_equal false, settings.logging assert_equal false, settings.raise_errors assert_equal false, settings.show_exceptions