summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDaniel Niknam <mhmd.niknam@gmail.com>2021-07-25 14:16:11 +1000
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-27 09:25:57 +0900
commitbd8daa8523ef13e49cf91110fad14a2aff36cb57 (patch)
treebe099483a74bbf1f2181156da173981b452eaf1c /spec
parent49176e8c8cc9a0f68810736663dc9c9a3cb3b774 (diff)
[rubygems/rubygems] Remove the warning for not defining a gem server source
Bundler has deprecated gemfiles without a global source and this feature is now obsolete. `Bundler::Definition#has_rubygems_remotes?` is removed because it's not used anymore. https://github.com/rubygems/rubygems/commit/d29dd2cb7b
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/install_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb
index e6ae21eafb..412000341f 100644
--- a/spec/bundler/commands/install_spec.rb
+++ b/spec/bundler/commands/install_spec.rb
@@ -331,11 +331,13 @@ RSpec.describe "bundle install with gem sources" do
it "gives a useful error if no sources are set" do
install_gemfile <<-G, :raise_on_error => false
- source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
- expect(err).to include("Your Gemfile has no gem server sources")
+ expect(err).to include("This Gemfile does not include an explicit global source. " \
+ "Not using an explicit global source may result in a different lockfile being generated depending on " \
+ "the gems you have installed locally before bundler is run." \
+ "Instead, define a global source in your Gemfile like this: source \"https://rubygems.org\".")
end
it "creates a Gemfile.lock on a blank Gemfile" do