Skip to content
Permalink
Browse files

Always stub_request inside the subprocess_output block

  • Loading branch information...
matthewd committed Oct 13, 2019
1 parent 45ac0ea commit 5a6229d86c39b86e940e71bda7387abbc32b504f
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/lock_install_test.rb
@@ -18,14 +18,14 @@ def test_install_simple_lockfile
LOCKFILE
lockfile.close

stub_request(:get, "https://rubygems.org/gems/rack-2.0.3.gem").
to_return(body: File.open(fixture_file("rack-2.0.3.gem")))

stub_request(:get, "https://rubygems.org/gems/rack-test-0.6.3.gem").
to_return(body: File.open(fixture_file("rack-test-0.6.3.gem")))

with_empty_store do |store|
output = subprocess_output(<<-'END', store: store, lock_path: lockfile.path)
stub_request(:get, "https://rubygems.org/gems/rack-2.0.3.gem").
to_return(body: File.open(fixture_file("rack-2.0.3.gem")))
stub_request(:get, "https://rubygems.org/gems/rack-test-0.6.3.gem").
to_return(body: File.open(fixture_file("rack-test-0.6.3.gem")))
loader = Gel::LockLoader.new(Gel::ResolvedGemSet.load(lock_path))
loader.activate(Gel::Environment, store, install: true)

0 comments on commit 5a6229d

Please sign in to comment.
You can’t perform that action at this time.