2
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
4
# See LICENSE.txt for permissions.
8
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
9
require 'rubygems/doc_manager'
11
class TestGemDocManager < RubyGemTestCase
17
@manager = Gem::DocManager.new(@spec)
20
def test_uninstall_doc_unwritable
21
orig_mode = File.stat(@spec.installation_path).mode
22
File.chmod 0, @spec.installation_path
24
assert_raise Gem::FilePermissionError do
25
@manager.uninstall_doc
28
File.chmod orig_mode, @spec.installation_path