Fix tests

This commit is contained in:
Mitchell Hashimoto 2014-04-12 18:04:17 -07:00
parent 00962c7c2a
commit e7e9bcd360
1 changed files with 11 additions and 2 deletions

View File

@ -38,13 +38,22 @@ describe VagrantPlugins::CommandBox::Command::Repackage do
end end
context "with two arguments" do context "with two arguments" do
let(:argv) { ["one", "two"] }
it "shows help" do
expect { subject.execute }.
to raise_error(Vagrant::Errors::CLIInvalidUsage)
end
end
context "with three arguments" do
it "repackages the box with the given provider" do it "repackages the box with the given provider" do
pending pending
end end
end end
context "with more than two arguments" do context "with more than three arguments" do
let(:argv) { ["one", "two", "three"] } let(:argv) { ["one", "two", "three", "four"] }
it "shows help" do it "shows help" do
expect { subject.execute }. expect { subject.execute }.