From fff4f595c517dc64284a60ba1347a84fc8474b99 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Fri, 14 Feb 2014 11:53:17 -0800 Subject: [PATCH] Added unit test for passing a single fixnum as an argument to the shell provisioner --- test/unit/plugins/provisioners/shell/config_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/unit/plugins/provisioners/shell/config_test.rb b/test/unit/plugins/provisioners/shell/config_test.rb index 13aa531c6..3e5c6f516 100644 --- a/test/unit/plugins/provisioners/shell/config_test.rb +++ b/test/unit/plugins/provisioners/shell/config_test.rb @@ -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"]