1 require File.join(File.expand_path(File.dirname(__FILE__)),
2 'gem_installer_test_case')
3 require 'rubygems/uninstaller'
5 class TestGemUninstaller < GemInstallerTestCase
18 def test_remove_executables_force_keep
19 uninstaller = Gem::Uninstaller.new nil, :executables => false
22 uninstaller.remove_executables @spec
25 assert_equal true, File.exist?(File.join(@gemhome, 'bin', 'executable'))
27 assert_equal "Executables and scripts will remain installed.\n", @ui.output
30 def test_remove_executables_force_remove
31 uninstaller = Gem::Uninstaller.new nil, :executables => true
34 uninstaller.remove_executables @spec
37 assert_equal "Removing executable\n", @ui.output
39 assert_equal false, File.exist?(File.join(@gemhome, 'bin', 'executable'))