1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/rdoc/test_rdoc_generator_darkfish.rb: Updated tests for windows

* test/rdoc/test_rdoc_options.rb:  ditto
* test/rdoc/test_rdoc_parser.rb:  ditto
* test/rdoc/test_rdoc_rdoc.rb:  ditto
* test/rdoc/test_rdoc_ri_driver.rb:  ditto
* test/rdoc/test_rdoc_servlet.rb:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-11-27 07:09:21 +00:00
parent 585de40a69
commit ef8e0908af
7 changed files with 25 additions and 4 deletions

View file

@ -1,3 +1,12 @@
Tue Nov 27 16:06:00 2012 Eric Hodel <drbrain@segment7.net>
* test/rdoc/test_rdoc_generator_darkfish.rb: Updated tests for windows
* test/rdoc/test_rdoc_options.rb: ditto
* test/rdoc/test_rdoc_parser.rb: ditto
* test/rdoc/test_rdoc_rdoc.rb: ditto
* test/rdoc/test_rdoc_ri_driver.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: ditto
Tue Nov 27 15:13:51 2012 Eric Hodel <drbrain@segment7.net>
* common.mk (rdoc): Set --debug for rdoc generation in case of bugs

View file

@ -92,7 +92,7 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase
assert_file 'js/search_index.js'
encoding = if Object.const_defined? :Encoding then
Regexp.escape Encoding.default_external.name
Regexp.escape Encoding::UTF_8.name
else
Regexp.escape 'UTF-8'
end

View file

@ -195,7 +195,9 @@ rdoc_include:
def test_parse_copy_files_directory_absolute
@options.parse %w[--copy-files /]
assert_equal ['/'], @options.static_path
assert_equal 1, @options.static_path.length
assert_match %r%^([A-Z]:)?/$%, @options.static_path.first
end
def test_parse_coverage

View file

@ -62,6 +62,8 @@ class TestRDocParser < RDoc::TestCase
end
def test_class_can_parse_forbidden
skip 'chmod not supported' if Gem.win_platform?
Tempfile.open 'forbidden' do |io|
begin
File.chmod 0000, io.path

View file

@ -157,6 +157,8 @@ class TestRDocRDoc < RDoc::TestCase
end
def test_parse_file_forbidden
skip 'chmod not supported' if Gem.win_platform?
@rdoc.store = RDoc::Store.new
Tempfile.open 'test.txt' do |io|
@ -196,7 +198,7 @@ class TestRDocRDoc < RDoc::TestCase
def test_remove_unparseable_tags_emacs
temp_dir do
open 'TAGS', 'w' do |io| # emacs
open 'TAGS', 'wb' do |io| # emacs
io.write "\f\nlib/foo.rb,43\n"
end

View file

@ -1055,7 +1055,9 @@ Foo::Bar#bother
refute @driver.paging?
end
def test_page_in_presence_of_child_status
# this test is too fragile. Perhaps using Process.spawn will make this
# reliable
def _test_page_in_presence_of_child_status
skip 'this test hangs on travis-ci.org' if ENV['CI']
@driver.use_stdout = false

View file

@ -248,6 +248,8 @@ class TestRDocServlet < RDoc::TestCase
end
def test_if_modified_since
skip 'File.utime on directory not supported' if Gem.win_platform?
temp_dir do
now = Time.now
File.utime now, now, '.'
@ -259,6 +261,8 @@ class TestRDocServlet < RDoc::TestCase
end
def test_if_modified_since_not_modified
skip 'File.utime on directory not supported' if Gem.win_platform?
temp_dir do
now = Time.now
File.utime now, now, '.'