summaryrefslogtreecommitdiffstats
path: root/test/types/exec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/types/exec.rb')
-rwxr-xr-xtest/types/exec.rb4
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",