Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 50c3395

Browse files
author
Colby Swandale
committed
fix bug where bundler v3 is running a test for bundflet 2
1 parent 1953cfd commit 50c3395

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

spec/other/major_deprecation_spec.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
RSpec.describe "major deprecations", :bundler => "< 3" do
3+
RSpec.describe "major deprecations", :bundler => "<= 2" do
44
let(:warnings) { last_command.bundler_err } # change to err in 2.0
55
let(:warnings_without_version_messages) { warnings.gsub(/#{Spec::Matchers::MAJOR_DEPRECATION}Bundler will only support ruby(gems)? >= .*/, "") }
66

@@ -198,17 +198,6 @@
198198
end
199199

200200
context "with github gems" do
201-
it "warns about the https change", :bundler => "3" do
202-
msg = <<-EOS
203-
The :github git source is deprecated, and will be removed in Bundler 3.0. Change any "reponame" :github sources to "username/reponame". Add this code to the top of your Gemfile to ensure it continues to work:
204-
205-
git_source(:github) {|repo_name| "https://github.com/\#{repo_name}.git" }
206-
207-
EOS
208-
expect(Bundler::SharedHelpers).to receive(:major_deprecation).with(3, msg)
209-
subject.gem("sparks", :github => "indirect/sparks")
210-
end
211-
212201
it "upgrades to https on request" do
213202
Bundler.settings.temporary "github.https" => true
214203
msg = <<-EOS

0 commit comments

Comments
 (0)