aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/show_spec.rb
diff options
context:
space:
mode:
authorRichard Michael <rmichael@edgeofthenet.org>2012-05-04 15:16:49 +0200
committerRichard Michael <rmichael@edgeofthenet.org>2012-05-04 17:52:16 +0200
commitadb4ad867e45863c5416443dddca9b0696e9b2fe (patch)
tree2baf62aa94b1d4a29301680d9de846c2bf969309 /spec/other/show_spec.rb
parenta63bdd32736ea176dbf6ae68cc54a1f398e557d9 (diff)
downloadbundler-adb4ad867e45863c5416443dddca9b0696e9b2fe.tar.gz
Sort `bundle outdated` output (as `bundle show`) ; add tests.
Diffstat (limited to 'spec/other/show_spec.rb')
-rw-r--r--spec/other/show_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/other/show_spec.rb b/spec/other/show_spec.rb
index d14114e8..d79d8934 100644
--- a/spec/other/show_spec.rb
+++ b/spec/other/show_spec.rb
@@ -39,10 +39,15 @@ describe "bundle show" do
out.should =~ /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"
+
out.should include(default_bundle_path('gems', 'rake-0.8.7').to_s)
out.should 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 }
+ gem_list.should == gem_list.sort
end
end