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

Commit

Permalink
Fix more specs on an environment with bundler head as a default gem
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 28, 2019
1 parent 0c0a498 commit c6cb2dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/bundler/source/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def specs
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__)
Expand Down
21 changes: 17 additions & 4 deletions spec/commands/show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,23 @@
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

Expand Down

0 comments on commit c6cb2dd

Please sign in to comment.