Added unit test for passing a single fixnum as an argument to the shell

provisioner
This commit is contained in:
Ryan Uber 2014-02-14 11:53:17 -08:00
parent 509e29043a
commit fff4f595c5
1 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,17 @@ describe "VagrantPlugins::Shell::Config" do
result["shell provisioner"].should == []
end
it "passes with fixnum args" do
subject.path = file_that_exists
subject.args = 1
subject.finalize!
result = subject.validate(machine)
result["shell provisioner"].should == []
end
it "passes with array args" do
subject.path = file_that_exists
subject.args = ["an", "array"]