bundle-new/spec/other/cli_dispatch_spec.rb

22 lines
473 B
Ruby
Raw Permalink Normal View History

2019-10-06 15:45:34 +00:00
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