diff options
Diffstat (limited to 'test/rubygems/test_gem_doc_manager.rb')
-rw-r--r-- | test/rubygems/test_gem_doc_manager.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_doc_manager.rb b/test/rubygems/test_gem_doc_manager.rb index f52f1f87f1..f7ab6416c0 100644 --- a/test/rubygems/test_gem_doc_manager.rb +++ b/test/rubygems/test_gem_doc_manager.rb @@ -17,21 +17,21 @@ class TestGemDocManager < Gem::TestCase end def test_uninstall_doc_unwritable - path = @spec.installation_path + path = @spec.base_dir orig_mode = File.stat(path).mode # 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 0000, path + FileUtils.chmod 0000, path end assert_raises Gem::FilePermissionError do @manager.uninstall_doc end ensure - File.chmod orig_mode, path + FileUtils.chmod orig_mode, path end end |