Sha256: 6996f1d603abbb6dbdd1c9d561f39c3a8e92bb4668f53efe2d61d09386ae2af5
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 Bytes
Contents
describe Vagrant::CLI do describe "parsing options" do let(:klass) do Class.new(described_class) end let(:environment) do ui = double("UI::Silent") ui.stub(:info => "bar") env = double("Vagrant::Environment") env.stub(:active_machines => []) env.stub(:ui => ui) env.stub(:root_path => "foo") env.stub(:machine_names => []) env end it "returns a non-zero exit status if an invalid command is given" do result = klass.new(["destroypp"], environment).execute result.should_not == 0 end it "returns an exit status of zero if a valid command is given" do result = klass.new(["destroy"], environment).execute result.should == 0 end end end
Version data entries
6 entries across 6 versions & 2 rubygems