diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/types/tc_exec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/types/tc_exec.rb b/test/types/tc_exec.rb index bc6b7dfaf..1eada111b 100755 --- a/test/types/tc_exec.rb +++ b/test/types/tc_exec.rb @@ -119,4 +119,23 @@ class TestExec < Test::Unit::TestCase ) } end + + def test_xcwdsettings + command = nil + assert_nothing_raised { + command = Puppet::Type::Exec.new( + :command => "pwd", + :cwd => "/tmp", + :path => "/usr/bin:/bin:/usr/sbin:/sbin", + :returns => 0 + ) + } + assert_nothing_raised { + command.retrieve + } + assert_nothing_raised { + command.sync + } + assert_equal("/tmp\n",command.output) + end end |