summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-03-02 18:23:46 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-03 13:43:59 +0900
commit7fea848568741439c2ff25db4e03a607046b4ed8 (patch)
tree9a5f1c5db42a2eb8215e5efe42701a425e36ada0 /test
parentb6d914c7228e09a37d879125917bcab179fa88c1 (diff)
[rubygems/rubygems] Fix warnings about unused variable
``` /path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:180: warning: assigned but unused variable - platforms ``` https://github.com/rubygems/rubygems/commit/7e022cb5e3
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_commands_exec_command.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_exec_command.rb b/test/rubygems/test_gem_commands_exec_command.rb
index f9908af46b..7902e44eb5 100644
--- a/test/rubygems/test_gem_commands_exec_command.rb
+++ b/test/rubygems/test_gem_commands_exec_command.rb
@@ -177,8 +177,6 @@ class TestGemCommandsExecCommand < Gem::TestCase
end
def test_gem_with_platform_dependencies
- platforms = Gem.platforms.dup
-
spec_fetcher do |fetcher|
fetcher.download "a", 2 do |s|
s.executables = %w[a]
@@ -219,8 +217,6 @@ class TestGemCommandsExecCommand < Gem::TestCase
pend "extensions don't quite work on jruby" if Gem.java_platform?
pend "terminates on mswin" if Gem.win_platform?
- platforms = Gem.platforms.dup
-
spec_fetcher do |fetcher|
fetcher.download "a", 2 do |s|
s.executables = %w[a]