diff options
Diffstat (limited to 'test/types/exec.rb')
-rwxr-xr-x | test/types/exec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/types/exec.rb b/test/types/exec.rb index 8f0756b9f..8f09420d1 100755 --- a/test/types/exec.rb +++ b/test/types/exec.rb @@ -44,13 +44,11 @@ class TestExec < Test::Unit::TestCase def test_path_or_qualified command = nil output = nil - assert_nothing_raised { + assert_raise(Puppet::Error) { command = Puppet.type(:exec).create( :command => "echo" ) - assert_nil(command) } - Puppet.type(:exec).clear assert_nothing_raised { command = Puppet.type(:exec).create( :command => "echo", |