diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/types/tc_exec.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/types/tc_exec.rb b/test/types/tc_exec.rb index d188c4487..bc6b7dfaf 100755 --- a/test/types/tc_exec.rb +++ b/test/types/tc_exec.rb @@ -36,6 +36,36 @@ class TestExec < Test::Unit::TestCase assert_equal([:executed_command],output) end + def test_numvsstring + command = nil + output = nil + assert_nothing_raised { + command = Puppet::Type::Exec.new( + :command => "/bin/echo", + :returns => 0 + ) + } + assert_nothing_raised { + command.retrieve + } + assert_nothing_raised { + output = command.sync + } + Puppet::Type::Exec.clear + assert_nothing_raised { + command = Puppet::Type::Exec.new( + :command => "/bin/echo", + :returns => "0" + ) + } + assert_nothing_raised { + command.retrieve + } + assert_nothing_raised { + output = command.sync + } + end + def test_path_or_qualified command = nil output = nil |