* backport r32981 and r32982 from trunk.

* ext/dl:  Add documentation.  Patch by Vincent Batts.
  [Ruby 1.9 - Bug #5192]
* ext/.document (fiddle):  Remove duplicate entry
* ext/fiddle:  Complete documentation of Fiddle.  Patch by Vincent
  Batts.  [#5192]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-08-23 23:04:38 +00:00
parent 2f8fb75416
commit e5f7bf8442
5 changed files with 45 additions and 3 deletions

View file

@ -17,6 +17,34 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
@executable = File.join(@gemhome, 'bin', 'executable')
end
def test_execute_mulitple
@other = quick_gem 'c'
util_make_exec @other
util_build_gem @other
@other_installer = util_installer @other, @gemhome
ui = Gem::MockGemUi.new
util_setup_gem ui
build_rake_in do
use_ui ui do
@other_installer.install
end
end
@cmd.options[:args] = [@spec.name, @other.name]
use_ui @ui do
@cmd.execute
end
output = @ui.output.split "\n"
assert_includes output, "Successfully uninstalled #{@spec.full_name}"
assert_includes output, "Successfully uninstalled #{@other.full_name}"
end
def test_execute_removes_executable
ui = Gem::MockGemUi.new
util_setup_gem ui
@ -91,5 +119,6 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
output = @ui.output
assert_match(/Successfully uninstalled/, output)
end
end