test/unit/server_configuration_tests.rb in deas-0.27.0 vs test/unit/server_configuration_tests.rb in deas-0.28.0

- old
+ new

@@ -1,12 +1,14 @@ require 'assert' require 'deas/server' -require 'test/support/view_handlers' require 'deas/exceptions' -require 'deas/template' +require 'deas/logger' require 'deas/router' +require 'deas/template' +require 'deas/template_source' +require 'test/support/view_handlers' class Deas::Server::Configuration class UnitTests < Assert::Context desc "Deas::Server::Configuration" @@ -22,11 +24,11 @@ should have_imeths :dump_errors, :method_override, :sessions, :show_exceptions should have_imeths :static_files, :reload_templates, :default_charset # server handling options - should have_imeths :verbose_logging, :logger + should have_imeths :verbose_logging, :logger, :template_source should have_accessors :settings, :error_procs, :init_procs, :template_helpers should have_accessors :middlewares, :router should have_imeths :valid?, :validate!, :urls, :routes, :template_scope @@ -47,11 +49,12 @@ assert_equal true, subject.static_files assert_equal false, subject.reload_templates end should "default the handling options" do - assert_instance_of Deas::NullLogger, subject.logger assert_equal true, subject.verbose_logging + assert_instance_of Deas::NullLogger, subject.logger + assert_instance_of Deas::NullTemplateSource, subject.template_source end should "default its stored configuration" do assert_empty subject.settings assert_empty subject.error_procs