diff --git a/test/test_rack_handler.rb b/test/test_rack_handler.rb index bbca1302..b645b3eb 100644 --- a/test/test_rack_handler.rb +++ b/test/test_rack_handler.rb @@ -227,6 +227,13 @@ class TestUserSuppliedOptionsIsNotPresent < Minitest::Test end end + def test_default_log_request_when_no_config_file + conf = Rack::Handler::Puma.config(->{}, @options) + conf.load + + assert_equal false, conf.options[:log_requests] + end + def test_file_log_requests_wins_over_default_config file_log_requests_config = true @@ -240,9 +247,7 @@ class TestUserSuppliedOptionsIsNotPresent < Minitest::Test assert_equal file_log_requests_config, conf.options[:log_requests] end - def test_user_log_requests_wins_over_file_config - file_log_requests_config = true user_log_requests_config = false @options[:log_requests] = user_log_requests_config