diff options
Diffstat (limited to 'spec/bundler/bundler/cli_spec.rb')
-rw-r--r-- | spec/bundler/bundler/cli_spec.rb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/spec/bundler/bundler/cli_spec.rb b/spec/bundler/bundler/cli_spec.rb index 02e5155733..ddcd699d6c 100644 --- a/spec/bundler/bundler/cli_spec.rb +++ b/spec/bundler/bundler/cli_spec.rb @@ -27,6 +27,56 @@ RSpec.describe "bundle executable" do expect(out).to eq("Hello, world") end + describe "aliases" do + it "aliases e to exec" do + bundle "e --help" + + expect(out).to include("BUNDLE-EXEC") + end + + it "aliases ex to exec" do + bundle "ex --help" + + expect(out).to include("BUNDLE-EXEC") + end + + it "aliases exe to exec" do + bundle "exe --help" + + expect(out).to include("BUNDLE-EXEC") + end + + it "aliases c to check" do + bundle "c --help" + + expect(out).to include("BUNDLE-CHECK") + end + + it "aliases i to install" do + bundle "i --help" + + expect(out).to include("BUNDLE-INSTALL") + end + + it "aliases ls to list" do + bundle "ls --help" + + expect(out).to include("BUNDLE-LIST") + end + + it "aliases package to cache" do + bundle "package --help" + + expect(out).to include("BUNDLE-CACHE") + end + + it "aliases pack to cache" do + bundle "pack --help" + + expect(out).to include("BUNDLE-CACHE") + end + end + context "with no arguments" do it "prints a concise help message", :bundler => "3" do bundle! "" |