summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-28 09:26:51 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-28 13:19:44 +0200
commit3717fa176255caad57e1cb2a54836910f83bb805 (patch)
tree8546da203bd9431002616071b709366c12aa6fb2
parent8452e246540fed81ab24c59f07edd6876a6d330b (diff)
downloadbundler-fix_specs_with_bundler_master_installed_globally.tar.gz
Fix more specs on an environment with bundler head as a default gemfix_specs_with_bundler_master_installed_globally
-rw-r--r--lib/bundler/source/metadata.rb2
-rw-r--r--spec/commands/show_spec.rb21
2 files changed, 19 insertions, 4 deletions
diff --git a/lib/bundler/source/metadata.rb b/lib/bundler/source/metadata.rb
index 0c96399b0e..0867879861 100644
--- a/lib/bundler/source/metadata.rb
+++ b/lib/bundler/source/metadata.rb
@@ -18,6 +18,8 @@ module Bundler
s.source = self
s.authors = ["bundler team"]
s.bindir = "exe"
+ s.homepage = "https://bundler.io"
+ s.summary = "The best way to manage your application's dependencies"
s.executables = %w[bundle]
# can't point to the actual gemspec or else the require paths will be wrong
s.loaded_from = File.expand_path("..", __FILE__)
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb
index 3ae82f6fb3..6a7d5f267e 100644
--- a/spec/commands/show_spec.rb
+++ b/spec/commands/show_spec.rb
@@ -68,10 +68,23 @@ RSpec.describe "bundle show", :bundler => "< 3" do
it "prints summary of gems" do
bundle "show --verbose"
- expect(out).to include("* actionmailer (2.3.2)")
- expect(out).to include("\tSummary: This is just a fake gem for testing")
- expect(out).to include("\tHomepage: No website available.")
- expect(out).to include("\tStatus: Up to date")
+ expect(out).to include <<~MSG
+ * actionmailer (2.3.2)
+ \tSummary: This is just a fake gem for testing
+ \tHomepage: http://example.com
+ \tStatus: Up to date
+ MSG
+ end
+
+ it "includes bundler in the summary of gems" do
+ bundle "show --verbose"
+
+ expect(out).to include <<~MSG
+ * bundler (#{Bundler::VERSION})
+ \tSummary: The best way to manage your application's dependencies
+ \tHomepage: https://bundler.io
+ \tStatus: Up to date
+ MSG
end
end