aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_server.rb')
-rw-r--r--test/rubygems/test_gem_server.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_server.rb b/test/rubygems/test_gem_server.rb
index 866a9e3c97..d929c04c07 100644
--- a/test/rubygems/test_gem_server.rb
+++ b/test/rubygems/test_gem_server.rb
@@ -222,6 +222,16 @@ class TestGemServer < RubyGemTestCase
assert_equal Gem::Platform.local, spec.platform
end
+ def test_rdoc
+ data = StringIO.new "GET /rdoc?q=a HTTP/1.0\r\n\r\n"
+ @req.parse data
+
+ @server.rdoc @req, @res
+
+ assert_equal 200, @res.status, @res.body
+ assert_match %r|No documentation found|, @res.body
+ assert_equal 'text/html', @res['content-type']
+ end
def test_root
data = StringIO.new "GET / HTTP/1.0\r\n\r\n"