summaryrefslogtreecommitdiff
path: root/spec/commands
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-01 11:01:03 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-12 16:46:32 +0200
commita65304f0da902cbbad775d0fb46dc939ebb4961d (patch)
tree70dec1d58c79d5c2357ff988874ce48cd7acf685 /spec/commands
parenteb47767be21e36b8d456c7788155e9cb91e6db85 (diff)
downloadbundler-a65304f0da902cbbad775d0fb46dc939ebb4961d.tar.gz
Don't include table header when ordering
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/outdated_spec.rb20
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"