[前][次][番号順一覧][スレッド一覧]

ruby-changes:69710

From: David <ko1@a...>
Date: Fri, 12 Nov 2021 06:05:22 +0900 (JST)
Subject: [ruby-changes:69710] 3cf7130d70 (master): [rubygems/rubygems] Remove duplicated spec

https://git.ruby-lang.org/ruby.git/commit/?id=3cf7130d70

From 3cf7130d709ea5d54f3b0920fb5c1bece9dc20c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Thu, 11 Nov 2021 20:31:24 +0100
Subject: [rubygems/rubygems] Remove duplicated spec

https://github.com/rubygems/rubygems/commit/86b874ed24
---
 spec/bundler/update/git_spec.rb | 38 +-------------------------------------
 1 file changed, 1 insertion(+), 37 deletions(-)

diff --git a/spec/bundler/update/git_spec.rb b/spec/bundler/update/git_spec.rb
index af014c5fe0b..0787ee41a73 100644
--- a/spec/bundler/update/git_spec.rb
+++ b/spec/bundler/update/git_spec.rb
@@ -293,43 +293,7 @@ RSpec.describe "bundle update" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/update/git_spec.rb#L293
       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'"
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]