Added unit test for passing a single fixnum as an argument to the shell
provisioner
This commit is contained in:
parent
509e29043a
commit
fff4f595c5
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue