mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
servlet.rb: requires json
* lib/rdoc/servlet.rb (documentation_search, root_search): requires json for JSON.dump and fix sporadic failures due to the loading order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
db577345ca
commit
e5471cbe63
3 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Wed Jun 17 09:50:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rdoc/servlet.rb (documentation_search, root_search):
|
||||||
|
requires json for JSON.dump and fix sporadic failures due to
|
||||||
|
the loading order.
|
||||||
|
|
||||||
Tue Jun 16 19:19:53 2015 Tanaka Akira <akr@fsij.org>
|
Tue Jun 16 19:19:53 2015 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/rbconfig/sizeof/extconf.rb: Check several types defined in C99
|
* ext/rbconfig/sizeof/extconf.rb: Check several types defined in C99
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
require 'rdoc'
|
require 'rdoc'
|
||||||
require 'time'
|
require 'time'
|
||||||
|
require 'json'
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -185,7 +185,7 @@ class TestRDocServlet < RDoc::TestCase
|
||||||
|
|
||||||
@s.do_GET @req, @res
|
@s.do_GET @req, @res
|
||||||
|
|
||||||
assert_equal 'application/javascript', @res.content_type
|
assert_equal 'application/javascript', @res.content_type, @res.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_documentation_page_class
|
def test_documentation_page_class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue