summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/help_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/commands/help_spec.rb')
-rw-r--r--spec/bundler/commands/help_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/bundler/commands/help_spec.rb b/spec/bundler/commands/help_spec.rb
index 535df8e35a..0c7031e813 100644
--- a/spec/bundler/commands/help_spec.rb
+++ b/spec/bundler/commands/help_spec.rb
@@ -15,6 +15,13 @@ RSpec.describe "bundle help" do
expect(out).to eq(%(["#{man_dir}/bundle-install.1"]))
end
+ it "prexifes bundle commands with bundle- and resolves aliases when finding the man files" do
+ with_fake_man do
+ bundle "help package"
+ end
+ expect(out).to eq(%(["#{man_dir}/bundle-cache.1"]))
+ end
+
it "simply outputs the human readable file when there is no man on the path" do
with_path_as("") do
bundle "help install"