[rubygems/rubygems] Remove duplicated spec

https://github.com/rubygems/rubygems/commit/86b874ed24
This commit is contained in:
David Rodríguez 2021-11-11 20:31:24 +01:00 коммит произвёл git
Родитель 4736dec58b
Коммит 3cf7130d70
1 изменённых файлов: 1 добавлений и 37 удалений

Просмотреть файл

@ -293,43 +293,7 @@ RSpec.describe "bundle update" do
G
end
it "the --source flag updates version of gems that were originally pulled in by the source", :bundler => "< 3" do
spec_lines = lib_path("bar/foo.gemspec").read.split("\n")
spec_lines[5] = "s.version = '2.0'"
update_git "foo", "2.0", :path => @git.path do |s|
s.write "foo.gemspec", spec_lines.join("\n")
end
ref = @git.ref_for "master"
bundle "update --source bar"
expect(lockfile).to eq <<~G
GIT
remote: #{@git.path}
revision: #{ref}
specs:
foo (2.0)
GEM
remote: #{file_uri_for(gem_repo2)}/
specs:
rack (1.0.0)
PLATFORMS
#{lockfile_platforms}
DEPENDENCIES
foo!
rack
BUNDLED WITH
#{Bundler::VERSION}
G
end
it "the --source flag updates version of gems that were originally pulled in by the source", :bundler => "3" do
it "the --source flag updates version of gems that were originally pulled in by the source" do
spec_lines = lib_path("bar/foo.gemspec").read.split("\n")
spec_lines[5] = "s.version = '2.0'"