test/unit/server_tests.rb in sanford-0.18.0 vs test/unit/server_tests.rb in sanford-0.18.1

- old
+ new

@@ -17,11 +17,12 @@ subject{ @server_class } should have_imeths :config should have_imeths :name, :ip, :port, :pid_file, :shutdown_timeout should have_imeths :worker_class, :worker_params, :num_workers, :workers - should have_imeths :init, :error, :template_source, :logger, :router + should have_imeths :init, :init_procs, :error, :error_procs + should have_imeths :template_source, :logger, :router should have_imeths :receives_keep_alive, :verbose_logging should "use much-plugin" do assert_includes MuchPlugin, Sanford::Server end @@ -87,9 +88,14 @@ assert_equal exp, config.receives_keep_alive exp = Factory.boolean subject.verbose_logging exp assert_equal exp, config.verbose_logging + end + + should "demeter its config values that aren't directly set" do + assert_equal subject.config.init_procs, subject.init_procs + assert_equal subject.config.error_procs, subject.error_procs end should "have a router by default and allow overriding it" do assert_kind_of Sanford::Router, subject.router