[rubygems/rubygems] Stop installing everything under "lib" at the top in all tests
https://github.com/rubygems/rubygems/commit/f9772d62e1
This commit is contained in:
parent
64c8ed272f
commit
58dc9c931b
@ -15,6 +15,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
super
|
super
|
||||||
|
|
||||||
@cmd = Gem::Commands::SetupCommand.new
|
@cmd = Gem::Commands::SetupCommand.new
|
||||||
|
@cmd.options[:document] = []
|
||||||
|
|
||||||
filelist = %w[
|
filelist = %w[
|
||||||
bin/gem
|
bin/gem
|
||||||
@ -66,7 +67,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
io.puts "I changed it!"
|
io.puts "I changed it!"
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:document] = []
|
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
|
||||||
assert_match %r{\A#!}, File.read(gem_bin_path)
|
assert_match %r{\A#!}, File.read(gem_bin_path)
|
||||||
@ -78,7 +78,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
io.puts "I changed it!"
|
io.puts "I changed it!"
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:document] = []
|
|
||||||
@cmd.options[:regenerate_binstubs] = false
|
@cmd.options[:regenerate_binstubs] = false
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
|
||||||
@ -91,7 +90,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
io.puts "I changed it!"
|
io.puts "I changed it!"
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:document] = []
|
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
|
||||||
assert_match %r{\Arequire}, File.read(gem_plugin_path)
|
assert_match %r{\Arequire}, File.read(gem_plugin_path)
|
||||||
@ -103,7 +101,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
io.puts "I changed it!"
|
io.puts "I changed it!"
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:document] = []
|
|
||||||
@cmd.options[:regenerate_plugins] = false
|
@cmd.options[:regenerate_plugins] = false
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
|
||||||
@ -116,15 +113,12 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
# Simulate gem installed with an older rubygems without a plugins layout
|
# Simulate gem installed with an older rubygems without a plugins layout
|
||||||
FileUtils.rm_rf Gem.plugindir
|
FileUtils.rm_rf Gem.plugindir
|
||||||
|
|
||||||
@cmd.options[:document] = []
|
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
|
||||||
assert_match %r{\Arequire}, File.read(gem_plugin_path)
|
assert_match %r{\Arequire}, File.read(gem_plugin_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_execute_informs_about_installed_executables
|
def test_execute_informs_about_installed_executables
|
||||||
@cmd.options[:document] = []
|
|
||||||
|
|
||||||
use_ui @ui do
|
use_ui @ui do
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
end
|
end
|
||||||
@ -143,7 +137,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
|||||||
io.puts "I changed it!"
|
io.puts "I changed it!"
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:document] = []
|
|
||||||
@cmd.options[:env_shebang] = true
|
@cmd.options[:env_shebang] = true
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user