Fix tests
This commit is contained in:
parent
00962c7c2a
commit
e7e9bcd360
|
@ -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 }.
|
||||||
|
|
Loading…
Reference in New Issue