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

- old
+ new

@@ -1,13 +1,15 @@ require 'assert' +require 'deas/sinatra_app' + require 'sinatra/base' -require 'test/support/view_handlers' +require 'deas/logger' require 'deas/route_proxy' require 'deas/route' require 'deas/router' require 'deas/server' -require 'deas/sinatra_app' +require 'test/support/view_handlers' module Deas::SinatraApp class UnitTests < Assert::Context desc "Deas::SinatraApp" @@ -40,20 +42,21 @@ assert_equal Sinatra::Base, subject.superclass end should "have it's configuration set based on the server configuration" do subject.settings.tap do |settings| - assert_equal 'staging', settings.environment - assert_equal 'path/to/somewhere', settings.root.to_s - assert_equal 'path/to/somewhere/public', settings.public_folder.to_s - assert_equal 'path/to/somewhere/views', settings.views.to_s - assert_equal true, settings.dump_errors - 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 + assert_equal 'staging', settings.environment + assert_equal 'path/to/somewhere', settings.root.to_s + assert_equal 'path/to/somewhere/public', settings.public_folder.to_s + assert_equal 'path/to/somewhere/views', settings.views.to_s + assert_equal true, settings.dump_errors + 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 + assert_instance_of Deas::NullTemplateSource, settings.template_source # 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