diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-25 12:01:52 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-25 08:02:28 +0000 |
commit | 58dc9c931b89931d339cf9db5f329cf650b23be8 (patch) | |
tree | b471a1056ca49abf8c9eb5b151cdbda9a87d5cda | |
parent | 64c8ed272fea57e0825650f75e05eb44456a039a (diff) | |
download | ruby-58dc9c931b89931d339cf9db5f329cf650b23be8.tar.gz |
[rubygems/rubygems] Stop installing everything under "lib" at the top in all tests
https://github.com/rubygems/rubygems/commit/f9772d62e1
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 9 |
1 files changed, 1 insertions, 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 |