Skip to content

Commit 6ab25e4

Browse files
committed
Remove dead code in dependency installer tests
Remove unused si.to_yaml calls that stored YAML at URLs that were never fetched. With the pure-Ruby parser, NilClass no longer has to_yaml, but these lines were dead code regardless.
1 parent ac0a178 commit 6ab25e4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/rubygems/test_gem_dependency_installer.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,7 @@ def test_install_force
677677
util_setup_gems
678678

679679
FileUtils.mv @b1_gem, @tempdir
680-
si = util_setup_spec_fetcher @b1
681-
@fetcher.data["http://gems.example.com/gems/yaml"] = si.to_yaml
680+
util_setup_spec_fetcher @b1
682681
inst = nil
683682

684683
Dir.chdir @tempdir do
@@ -955,9 +954,7 @@ def test_install_remote_platform_newer
955954
s.platform = Gem::Platform.new %w[cpu other_platform 1]
956955
end
957956

958-
si = util_setup_spec_fetcher @a1, a2_o
959-
960-
@fetcher.data["http://gems.example.com/gems/yaml"] = si.to_yaml
957+
util_setup_spec_fetcher @a1, a2_o
961958

962959
a1_data = nil
963960
a2_o_data = nil

0 commit comments

Comments
 (0)