bundle-new/spec/other/cli_dispatch_spec.rb

22 lines
473 B
Ruby

require "spec_helper"
describe "bundle command names" do
it "work when given fully" do
bundle "install"
expect(err).to eq("")
expect(out).not_to match(/Ambiguous command/)
end
it "work when not ambiguous" do
bundle "ins"
expect(err).to eq("")
expect(out).not_to match(/Ambiguous command/)
end
it "print a friendly error when ambiguous" do
bundle "i"
expect(err).to eq("")
expect(out).to match(/Ambiguous command/)
end
end