From 58dc9c931b89931d339cf9db5f329cf650b23be8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 25 Nov 2022 12:01:52 +0900 Subject: [PATCH] [rubygems/rubygems] Stop installing everything under "lib" at the top in all tests https://github.com/rubygems/rubygems/commit/f9772d62e1 --- test/rubygems/test_gem_commands_setup_command.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index 1c0963ee96..dd688a4421 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -15,6 +15,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase super @cmd = Gem::Commands::SetupCommand.new + @cmd.options[:document] = [] filelist = %w[ bin/gem @@ -66,7 +67,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase io.puts "I changed it!" end - @cmd.options[:document] = [] @cmd.execute assert_match %r{\A#!}, File.read(gem_bin_path) @@ -78,7 +78,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase io.puts "I changed it!" end - @cmd.options[:document] = [] @cmd.options[:regenerate_binstubs] = false @cmd.execute @@ -91,7 +90,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase io.puts "I changed it!" end - @cmd.options[:document] = [] @cmd.execute assert_match %r{\Arequire}, File.read(gem_plugin_path) @@ -103,7 +101,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase io.puts "I changed it!" end - @cmd.options[:document] = [] @cmd.options[:regenerate_plugins] = false @cmd.execute @@ -116,15 +113,12 @@ class TestGemCommandsSetupCommand < Gem::TestCase # Simulate gem installed with an older rubygems without a plugins layout FileUtils.rm_rf Gem.plugindir - @cmd.options[:document] = [] @cmd.execute assert_match %r{\Arequire}, File.read(gem_plugin_path) end def test_execute_informs_about_installed_executables - @cmd.options[:document] = [] - use_ui @ui do @cmd.execute end @@ -143,7 +137,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase io.puts "I changed it!" end - @cmd.options[:document] = [] @cmd.options[:env_shebang] = true @cmd.execute