[rubygems/rubygems] Remove unnecessary test setup
The method being unit tested here doesn't use `RbConfig::CONFIG["bindir"]`. https://github.com/rubygems/rubygems/commit/d3f092ad14
This commit is contained in:
parent
f5a4fdae25
commit
ef6752c6c4
@ -225,7 +225,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
f.puts 'echo "hello"'
|
f.puts 'echo "hello"'
|
||||||
end
|
end
|
||||||
|
|
||||||
bindir(bin_dir) do
|
|
||||||
@cmd.options[:force] = true
|
@cmd.options[:force] = true
|
||||||
|
|
||||||
@cmd.install_default_bundler_gem bin_dir
|
@cmd.install_default_bundler_gem bin_dir
|
||||||
@ -242,14 +241,12 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
assert_path_exist File.join bin_dir, e
|
assert_path_exist File.join bin_dir, e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def test_install_default_bundler_gem_with_destdir_flag
|
def test_install_default_bundler_gem_with_destdir_flag
|
||||||
@cmd.extend FileUtils
|
@cmd.extend FileUtils
|
||||||
|
|
||||||
bin_dir = File.join(@gemhome, 'bin')
|
bin_dir = File.join(@gemhome, 'bin')
|
||||||
|
|
||||||
bindir(bin_dir) do
|
|
||||||
destdir = File.join(@tempdir, 'foo')
|
destdir = File.join(@tempdir, 'foo')
|
||||||
|
|
||||||
@cmd.options[:destdir] = destdir
|
@cmd.options[:destdir] = destdir
|
||||||
@ -262,7 +259,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
assert_path_exist File.join destdir, @gemhome.gsub(/^[a-zA-Z]:/, ''), 'gems', spec.full_name, spec.bindir, e
|
assert_path_exist File.join destdir, @gemhome.gsub(/^[a-zA-Z]:/, ''), 'gems', spec.full_name, spec.bindir, e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def test_remove_old_lib_files
|
def test_remove_old_lib_files
|
||||||
lib = RbConfig::CONFIG["sitelibdir"]
|
lib = RbConfig::CONFIG["sitelibdir"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user