summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-16 11:26:53 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-17 18:50:55 +0900
commit7c1d590a8a1ed2c805a760ace02bedd94f962994 (patch)
treec00b4cb4527aeb8e353ef13eb200a8503d3fa273 /test/rubygems/test_gem.rb
parent23150e02742ac98a6b7c0b34a4342f614e60a378 (diff)
[rubygems/rubygems] util/rubocop -A --only Layout/SpaceBeforeComma
https://github.com/rubygems/rubygems/commit/4a5b70b508
Diffstat (limited to 'test/rubygems/test_gem.rb')
-rw-r--r--test/rubygems/test_gem.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index 745dfd18f3..4007835c3a 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -1303,7 +1303,7 @@ class TestGem < Gem::TestCase
Gem.paths = { "foo" => [],
"bar" => Object.new,
"GEM_HOME" => Gem.paths.home,
- "GEM_PATH" => "foo"}
+ "GEM_PATH" => "foo" }
end
assert_equal ["foo", Gem.paths.home], Gem.paths.path
assert_equal "", stderr
@@ -1312,14 +1312,14 @@ class TestGem < Gem::TestCase
def test_setting_paths_does_not_mutate_parameter_object
Gem.paths = { "GEM_HOME" => Gem.paths.home,
- "GEM_PATH" => "foo"} .freeze
+ "GEM_PATH" => "foo" } .freeze
assert_equal ["foo", Gem.paths.home], Gem.paths.path
end
def test_deprecated_paths=
stdout, stderr = capture_output do
Gem.paths = { "GEM_HOME" => Gem.paths.home,
- "GEM_PATH" => [Gem.paths.home, "foo"]}
+ "GEM_PATH" => [Gem.paths.home, "foo"] }
end
assert_equal [Gem.paths.home, "foo"], Gem.paths.path
assert_match(/Array values in the parameter to `Gem.paths=` are deprecated.\nPlease use a String or nil/m, stderr)