diff options
Diffstat (limited to 'spec/commands/help_spec.rb')
-rw-r--r-- | spec/commands/help_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/commands/help_spec.rb b/spec/commands/help_spec.rb index d59346f615..380e3be15e 100644 --- a/spec/commands/help_spec.rb +++ b/spec/commands/help_spec.rb @@ -16,14 +16,14 @@ describe "bundle help" do with_fake_man do bundle "help gemfile" end - expect(out).to eq(%(["#{root}/lib/bundler/man/gemfile.5"])) + expect(out).to eq(%(["#{root}/man/gemfile.5"])) end it "prefixes bundle commands with bundle- when finding the groff files" do with_fake_man do bundle "help install" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle-install"])) + expect(out).to eq(%(["#{root}/man/bundle-install.1"])) end it "simply outputs the txt file when there is no man on the path" do @@ -55,28 +55,28 @@ describe "bundle help" do with_fake_man do bundle "install --help" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle-install"])) + expect(out).to eq(%(["#{root}/man/bundle-install.1"])) end it "is called when the --help flag is used before the command" do with_fake_man do bundle "--help install" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle-install"])) + expect(out).to eq(%(["#{root}/man/bundle-install.1"])) end it "is called when the -h flag is used before the command" do with_fake_man do bundle "-h install" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle-install"])) + expect(out).to eq(%(["#{root}/man/bundle-install.1"])) end it "is called when the -h flag is used after the command" do with_fake_man do bundle "install -h" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle-install"])) + expect(out).to eq(%(["#{root}/man/bundle-install.1"])) end it "has helpful output when using --help flag for a non-existent command" do @@ -90,11 +90,11 @@ describe "bundle help" do with_fake_man do bundle "--help" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle"])) + expect(out).to eq(%(["#{root}/man/bundle.1"])) with_fake_man do bundle "-h" end - expect(out).to eq(%(["#{root}/lib/bundler/man/bundle"])) + expect(out).to eq(%(["#{root}/man/bundle.1"])) end end |