summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_doc_manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_doc_manager.rb')
-rw-r--r--test/rubygems/test_gem_doc_manager.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_doc_manager.rb b/test/rubygems/test_gem_doc_manager.rb
index f519ce7cd4..bcedb87b56 100644
--- a/test/rubygems/test_gem_doc_manager.rb
+++ b/test/rubygems/test_gem_doc_manager.rb
@@ -18,7 +18,13 @@ class TestGemDocManager < RubyGemTestCase
def test_uninstall_doc_unwritable
orig_mode = File.stat(@spec.installation_path).mode
- File.chmod 0, @spec.installation_path
+
+ # File.chmod has no effect on MS Windows directories (it needs ACL).
+ if win_platform?
+ skip("test_uninstall_doc_unwritable skipped on MS Windows")
+ else
+ File.chmod(0, @spec.installation_path)
+ end
assert_raises Gem::FilePermissionError do
@manager.uninstall_doc