summaryrefslogtreecommitdiff
path: root/test/webrick/test_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/webrick/test_config.rb')
-rw-r--r--test/webrick/test_config.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/webrick/test_config.rb b/test/webrick/test_config.rb
deleted file mode 100644
index a54a667452e..00000000000
--- a/test/webrick/test_config.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: false
-require "test/unit"
-require "webrick/config"
-
-class TestWEBrickConfig < Test::Unit::TestCase
- def test_server_name_default
- config = WEBrick::Config::General.dup
- assert_equal(false, config.key?(:ServerName))
- assert_equal(WEBrick::Utils.getservername, config[:ServerName])
- assert_equal(true, config.key?(:ServerName))
- end
-
- def test_server_name_set_nil
- config = WEBrick::Config::General.dup.update(ServerName: nil)
- assert_equal(nil, config[:ServerName])
- end
-end