diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-01 12:47:33 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-12 16:46:32 +0200 |
commit | eb47767be21e36b8d456c7788155e9cb91e6db85 (patch) | |
tree | dbe3f2bf9043df41ab38b3813afcce4683f0faa4 /spec/other | |
parent | 37ae646105e6b08bd0766bf300b74e2f38de4799 (diff) | |
download | bundler-eb47767be21e36b8d456c7788155e9cb91e6db85.tar.gz |
Remove --pretty option and make it the default
Diffstat (limited to 'spec/other')
-rw-r--r-- | spec/other/platform_spec.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/spec/other/platform_spec.rb b/spec/other/platform_spec.rb index b61a3f1b03..30bacfccd1 100644 --- a/spec/other/platform_spec.rb +++ b/spec/other/platform_spec.rb @@ -1185,8 +1185,14 @@ G G bundle "outdated" - expect(out).to include("activesupport (newest 3.0, installed 2.3.5, requested = 2.3.5") - expect(out).to include("foo (newest 1.0") + + expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip + Gem Locked Latest Requested Groups + activesupport 2.3.5 3.0 = 2.3.5 default + foo 1.0 xxxxxxx 1.0 xxxxxxx >= 0 default + TABLE + + expect(out).to match(Regexp.new(expected_output)) end it "returns list of outdated gems when the ruby version matches for any engine" do @@ -1206,8 +1212,14 @@ G G bundle "outdated" - expect(out).to include("activesupport (newest 3.0, installed 2.3.5, requested = 2.3.5)") - expect(out).to include("foo (newest 1.0") + + expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip + Gem Locked Latest Requested Groups + activesupport 2.3.5 3.0 = 2.3.5 default + foo 1.0 xxxxxxx 1.0 xxxxxxx >= 0 default + TABLE + + expect(out).to match(Regexp.new(expected_output)) end end |