test/test_gem_server.rb in rubygems-update-1.3.2 vs test/test_gem_server.rb in rubygems-update-1.3.3
- old
+ new
@@ -220,9 +220,19 @@
assert_equal 'a', spec.name
assert_equal Gem::Version.new(1), spec.version
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"
@req.parse data