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
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
pending
end
end
context "with more than two arguments" do
let(:argv) { ["one", "two", "three"] }
context "with more than three arguments" do
let(:argv) { ["one", "two", "three", "four"] }
it "shows help" do
expect { subject.execute }.