Skip to content

Commit 884d80f

Browse files
authored
Merge pull request #9371 from ruby/remove-dead-code
Remove dead code in dependency installer tests
2 parents c0322d7 + 6ab25e4 commit 884d80f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

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)