From 60f2c9cf5bea6dd99fac50c460eab4809cc30b01 Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 7 Feb 2011 07:07:12 +0000 Subject: Upgrade to RDoc 3.5.3. Fixes [Bug #4376] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rdoc/test_rdoc_options.rb | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'test/rdoc/test_rdoc_options.rb') diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb index eaa10586fd..763f50b5f0 100644 --- a/test/rdoc/test_rdoc_options.rb +++ b/test/rdoc/test_rdoc_options.rb @@ -17,28 +17,17 @@ class TestRDocOptions < MiniTest::Unit::TestCase end def test_check_files - expected = '' + skip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM out, err = capture_io do Dir.mktmpdir do |dir| - if RUBY_PLATFORM =~ /mswin|mingw/ then - @options.files = %w[nonexistent] - - expected = <<-EXPECTED -file 'nonexistent' not found - EXPECTED - else + Dir.chdir dir do FileUtils.touch 'unreadable' FileUtils.chmod 0, 'unreadable' @options.files = %w[nonexistent unreadable] - expected = <<-EXPECTED -file 'nonexistent' not found -file 'unreadable' not readable - EXPECTED + @options.check_files end - - @options.check_files end end @@ -46,6 +35,11 @@ file 'unreadable' not readable assert_equal '', out + expected = <<-EXPECTED +file 'nonexistent' not found +file 'unreadable' not readable + EXPECTED + assert_equal expected, err end -- cgit v1.2.3