[rubygems/rubygems] Fix spec to not touch the network

And not depend on the state of rack's master branch, in particular, on
their Ruby support range.

https://github.com/rubygems/rubygems/commit/9ea4baffac
This commit is contained in:
David Rodríguez 2022-01-25 12:48:16 +01:00 committed by git
parent cd806e19b7
commit 342e7a094a

View File

@ -48,12 +48,14 @@ RSpec.describe "bundle remove" do
context "when gem is specified in multiple lines" do context "when gem is specified in multiple lines" do
it "shows success for removed gem" do it "shows success for removed gem" do
build_git "rack"
gemfile <<-G gemfile <<-G
source '#{file_uri_for(gem_repo1)}' source '#{file_uri_for(gem_repo1)}'
gem 'git' gem 'git'
gem 'rack', gem 'rack',
git: 'https://github.com/rack/rack', git: "#{lib_path("rack-1.0")}",
branch: 'master' branch: 'master'
gem 'nokogiri' gem 'nokogiri'
G G