aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_doc_manager.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 08:44:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 08:44:45 +0000
commit1df42597d15416357a20bd68700ce1a2d245e8bb (patch)
treef588f28559958e27464866d7b137955bfff04a6f /test/rubygems/test_gem_doc_manager.rb
parentfc634cc092f486adfc911f614b7b4aa2c48c698d (diff)
downloadruby-1df42597d15416357a20bd68700ce1a2d245e8bb.tar.gz
cancel subversion backfire. sorry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_doc_manager.rb')
-rw-r--r--test/rubygems/test_gem_doc_manager.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_doc_manager.rb b/test/rubygems/test_gem_doc_manager.rb
index be4c12bd5b..f52f1f87f1 100644
--- a/test/rubygems/test_gem_doc_manager.rb
+++ b/test/rubygems/test_gem_doc_manager.rb
@@ -12,25 +12,26 @@ class TestGemDocManager < Gem::TestCase
def setup
super
- @spec = quick_gem 'a'
+ @spec = quick_gem 'a', 2
@manager = Gem::DocManager.new(@spec)
end
def test_uninstall_doc_unwritable
- orig_mode = File.stat(@spec.installation_path).mode
+ path = @spec.installation_path
+ 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(0, @spec.installation_path)
+ File.chmod 0000, path
end
assert_raises Gem::FilePermissionError do
@manager.uninstall_doc
end
ensure
- File.chmod orig_mode, @spec.installation_path
+ File.chmod orig_mode, path
end
end