test/unit/server_configuration_tests.rb in deas-0.13.1 vs test/unit/server_configuration_tests.rb in deas-0.14.0

- old
+ new

@@ -20,11 +20,11 @@ should have_imeths :dump_errors, :method_override, :sessions, :show_exceptions should have_imeths :static_files, :reload_templates # server handling options should have_imeths :error_procs, :init_procs, :logger, :middlewares, :settings - should have_imeths :verbose_logging, :routes, :view_handler_ns + should have_imeths :verbose_logging, :routes, :view_handler_ns, :default_charset should have_reader :template_helpers should have_imeths :valid?, :validate! should "default the env to 'development'" do @@ -74,9 +74,13 @@ should "complain if validating and `root` isn't set" do config = Deas::Server::Configuration.new assert_raises(Deas::ServerRootError){ config.validate! } assert_nothing_raised{ config.root '/path/to/root'; config.validate! } + end + + should "use `utf-8` as the default_charset by default" do + assert_equal 'utf-8', subject.default_charset end end class ValidationTests < BaseTests