diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/puppettest.rb | 4 | ||||
-rwxr-xr-x | test/types/exec.rb | 4 | ||||
-rw-r--r-- | test/types/type.rb | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/test/puppettest.rb b/test/puppettest.rb index f094045cd..f67b2dc96 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -59,6 +59,10 @@ module TestPuppet @methods = ary end + def self.default? + false + end + def self.initvars @calls = Hash.new do |hash, key| hash[key] = 0 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", diff --git a/test/types/type.rb b/test/types/type.rb index 420024fb3..010102ad9 100644 --- a/test/types/type.rb +++ b/test/types/type.rb @@ -690,6 +690,7 @@ end def test_defaultproviders # Make a fake type type = Puppet::Type.newtype(:defaultprovidertest) do + newparam(:name) do end end basic = type.provide(:basic) do @@ -740,7 +741,7 @@ end end # This will fail, but earlier systems will catch it. - assert_nothing_raised do + assert_raise(Puppet::Error) do file2 = Puppet::Type.type(:file).create( :title => "file2", :path => path, |