test/unit/sinatra_app_tests.rb in deas-0.33.0 vs test/unit/sinatra_app_tests.rb in deas-0.34.0

- old
+ new

@@ -25,10 +25,11 @@ c.method_override = false c.sessions = false c.show_exceptions = true c.static = true c.reload_templates = true + c.default_encoding = 'latin1' c.router = @router end @sinatra_app = Deas::SinatraApp.new(@configuration) end subject{ @sinatra_app } @@ -50,17 +51,20 @@ 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_equal 'latin1', settings.default_encoding 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 + + assert_includes "application/json", settings.add_charset end end should "define Sinatra routes for every route in the configuration" do get_routes = subject.routes[@route.method.to_s.upcase] || []