diff options
author | Andre Arko <andre@arko.net> | 2013-01-23 08:50:50 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-01-23 08:50:50 -0800 |
commit | 587ac98b4115cff132cc9cb82a9009886e344df3 (patch) | |
tree | 28f4d3a195783f7b795025fbc68e788db4ea5792 /spec/other/show_spec.rb | |
parent | 88d5bf140ed8f620d20930f2cff20057e7ed251b (diff) | |
parent | 34ef8f63def8d4a9597f9c681e6e29465fc70d3c (diff) | |
download | bundler-587ac98b4115cff132cc9cb82a9009886e344df3.tar.gz |
Merge pull request #1896 from richardkmichael/sort-outdated
Sort `bundle outdated` output (like `bundle show`) ; add spec.
Conflicts:
spec/other/outdated_spec.rb
spec/other/show_spec.rb
Diffstat (limited to 'spec/other/show_spec.rb')
-rw-r--r-- | spec/other/show_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/other/show_spec.rb b/spec/other/show_spec.rb index 55733531e6..4628907118 100644 --- a/spec/other/show_spec.rb +++ b/spec/other/show_spec.rb @@ -48,10 +48,15 @@ describe "bundle show" do expect(out).to match(/could not find gem 'missing'/i) end - it "prints path of all gems in bundle" do + it "prints path of all gems in bundle sorted by name" do bundle "show --paths" + expect(out).to include(default_bundle_path('gems', 'rake-10.0.2').to_s) expect(out).to include(default_bundle_path('gems', 'rails-2.3.2').to_s) + + # Gem names are the last component of their path. + gem_list = out.split.map { |p| p.split('/').last } + expect(gem_list).to eq(gem_list.sort) end end |