aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_options.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-07 07:07:12 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-07 07:07:12 +0000
commit60f2c9cf5bea6dd99fac50c460eab4809cc30b01 (patch)
treeab40b4f7be3ff6d9fc8aede6b90e1aa9dded0aff /test/rdoc/test_rdoc_options.rb
parentca9f7009db8aea70af3dd58cb6c7de0010844d22 (diff)
downloadruby-60f2c9cf5bea6dd99fac50c460eab4809cc30b01.tar.gz
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
Diffstat (limited to 'test/rdoc/test_rdoc_options.rb')
-rw-r--r--test/rdoc/test_rdoc_options.rb22
1 files changed, 8 insertions, 14 deletions
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