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

Commit

Permalink
Split --verbose option to a separate spec
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 2, 2019
1 parent 3f91ebc commit 2029182
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions spec/commands/outdated_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
update_repo2 { build_gem "activesupport", "3.0" }
update_repo2 { build_gem "terranova", "9" }

bundle "outdated --verbose"
bundle "outdated"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups Path
Gem Locked Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
terranova 8 9 = 8 default
TABLE
Expand All @@ -103,6 +103,39 @@
end
end

describe "with --verbose option" do
it "shows the location of the latest version's gemspec if installed" do
bundle! "config set clean false"

update_repo2 { build_gem "activesupport", "3.0" }
update_repo2 { build_gem "terranova", "9" }

install_gemfile <<-G
source "#{file_uri_for(gem_repo2)}"
gem "terranova", '9'
gem 'activesupport', '2.3.5'
G

gemfile <<-G
source "#{file_uri_for(gem_repo2)}"
gem "terranova", '8'
gem 'activesupport', '2.3.5'
G

bundle "outdated --verbose"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups Path
activesupport 2.3.5 3.0 = 2.3.5 default
terranova 8 9 = 8 default #{default_bundle_path("specifications/terranova-9.gemspec")}
TABLE

expect(out).to end_with(expected_output)
end
end

describe "with --group option" do
before do
install_gemfile <<-G
Expand Down

0 comments on commit 2029182

Please sign in to comment.