diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-01 11:01:03 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-12 16:46:32 +0200 |
commit | a65304f0da902cbbad775d0fb46dc939ebb4961d (patch) | |
tree | 70dec1d58c79d5c2357ff988874ce48cd7acf685 /spec/commands | |
parent | eb47767be21e36b8d456c7788155e9cb91e6db85 (diff) | |
download | bundler-a65304f0da902cbbad775d0fb46dc939ebb4961d.tar.gz |
Don't include table header when ordering
Diffstat (limited to 'spec/commands')
-rw-r--r-- | spec/commands/outdated_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb index 19eb7f75e2..437e7632ae 100644 --- a/spec/commands/outdated_spec.rb +++ b/spec/commands/outdated_spec.rb @@ -40,6 +40,26 @@ RSpec.describe "bundle outdated" do expect(out).to match(Regexp.new(expected_output)) end + it "excludes header row from the sorting" do + update_repo2 do + build_gem "AAA", %w[1.0.0 2.0.0] + end + + install_gemfile <<-G + source "#{file_uri_for(gem_repo2)}" + gem "AAA", "1.0.0" + G + + bundle "outdated" + + expected_output = <<~TABLE + Gem Locked Latest Requested Groups + AAA 1.0.0 2.0.0 = 1.0.0 default + TABLE + + expect(out).to include(expected_output.strip) + end + it "returns non zero exit status if outdated gems present" do update_repo2 do build_gem "activesupport", "3.0" |