mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
* lib/rdoc: Update to 3.9.1. Fixes === lines in verbatim sections.
Fixes :nodoc: on class aliases. Fixes :stopdoc: creating references to Object. Fixes spacing when class comments are merged in ri. Fixes `ri []` crash. Fixes bug report URL when rdoc crashes. Adds :doc: and :nodoc: to allow hiding of implementation details in ruby. Makes `rdoc` and `ri` gem-aware. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1b0ff275e0
commit
e8ad0a3e1e
14 changed files with 143 additions and 15 deletions
|
@ -38,6 +38,44 @@ class TestGemCommandsCleanupCommand < Gem::TestCase
|
|||
refute_path_exists @b_1.gem_dir
|
||||
end
|
||||
|
||||
def test_execute_all_user
|
||||
@a_1_1 = quick_spec 'a', '1.1'
|
||||
@a_1_1 = install_gem_user @a_1_1 # pick up user install path
|
||||
|
||||
Gem::Specification.dirs = [Gem.dir, Gem.user_dir]
|
||||
|
||||
assert_path_exists @a_1.gem_dir
|
||||
assert_path_exists @a_1_1.gem_dir
|
||||
|
||||
@cmd.options[:args] = %w[a]
|
||||
|
||||
@cmd.execute
|
||||
|
||||
refute_path_exists @a_1.gem_dir
|
||||
refute_path_exists @a_1_1.gem_dir
|
||||
end
|
||||
|
||||
def test_execute_all_user_no_sudo
|
||||
FileUtils.chmod 0555, @gemhome
|
||||
|
||||
@a_1_1 = quick_spec 'a', '1.1'
|
||||
@a_1_1 = install_gem_user @a_1_1 # pick up user install path
|
||||
|
||||
Gem::Specification.dirs = [Gem.dir, Gem.user_dir]
|
||||
|
||||
assert_path_exists @a_1.gem_dir
|
||||
assert_path_exists @a_1_1.gem_dir
|
||||
|
||||
@cmd.options[:args] = %w[a]
|
||||
|
||||
@cmd.execute
|
||||
|
||||
assert_path_exists @a_1.gem_dir
|
||||
refute_path_exists @a_1_1.gem_dir
|
||||
ensure
|
||||
FileUtils.chmod 0755, @gemhome
|
||||
end unless win_platform?
|
||||
|
||||
def test_execute_dry_run
|
||||
@cmd.options[:args] = %w[a]
|
||||
@cmd.options[:dryrun] = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue