diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
commit | d0233291bc8a5068e52c69c210e5979e5324b5bc (patch) | |
tree | 7d9459449c33792c63eeb7baa071e76352e0baab /trunk/test/rubygems/test_gem_uninstaller.rb | |
parent | 0dc342de848a642ecce8db697b8fecd83a63e117 (diff) | |
parent | 72eaacaa15256ab95c3b52ea386f88586fb9da40 (diff) |
re-adding tag v1_9_0_4 as an alias of trunk@18848v1_9_0_4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'trunk/test/rubygems/test_gem_uninstaller.rb')
-rw-r--r-- | trunk/test/rubygems/test_gem_uninstaller.rb | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/trunk/test/rubygems/test_gem_uninstaller.rb b/trunk/test/rubygems/test_gem_uninstaller.rb deleted file mode 100644 index 7d7890c3ea..0000000000 --- a/trunk/test/rubygems/test_gem_uninstaller.rb +++ /dev/null @@ -1,66 +0,0 @@ -require File.join(File.expand_path(File.dirname(__FILE__)), - 'gem_installer_test_case') -require 'rubygems/uninstaller' - -class TestGemUninstaller < GemInstallerTestCase - - def setup - super - - ui = MockGemUi.new - util_setup_gem ui - - build_rake_in do - use_ui ui do - @installer.install - end - end - end - - def test_initialize_expand_path - uninstaller = Gem::Uninstaller.new nil, :install_dir => '/foo//bar' - - assert_match %r|/foo/bar$|, uninstaller.instance_variable_get(:@gem_home) - end - - def test_remove_executables_force_keep - uninstaller = Gem::Uninstaller.new nil, :executables => false - - use_ui @ui do - uninstaller.remove_executables @spec - end - - assert_equal true, File.exist?(File.join(@gemhome, 'bin', 'executable')) - - assert_equal "Executables and scripts will remain installed.\n", @ui.output - end - - def test_remove_executables_force_remove - uninstaller = Gem::Uninstaller.new nil, :executables => true - - use_ui @ui do - uninstaller.remove_executables @spec - end - - assert_equal "Removing executable\n", @ui.output - - assert_equal false, File.exist?(File.join(@gemhome, 'bin', 'executable')) - end - - def test_path_ok_eh - uninstaller = Gem::Uninstaller.new nil - - assert_equal true, uninstaller.path_ok?(@spec) - end - - def test_path_ok_eh_legacy - uninstaller = Gem::Uninstaller.new nil - - @spec.loaded_from.gsub! @spec.full_name, '\&-legacy' - @spec.platform = 'legacy' - - assert_equal true, uninstaller.path_ok?(@spec) - end - -end - |