diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-15 02:01:58 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-15 02:01:58 +0000 |
commit | 2c57173a737bcdf12e6f3481a50e2788f5d1b4e3 (patch) | |
tree | 3641b27d4cefe2f1d123faa1b8d5f65a8d5f497f /test/types/type.rb | |
parent | 16d9d6fe69d6eb01f7655c760d54de5986e2b3f1 (diff) | |
download | puppet-2c57173a737bcdf12e6f3481a50e2788f5d1b4e3.tar.gz puppet-2c57173a737bcdf12e6f3481a50e2788f5d1b4e3.tar.xz puppet-2c57173a737bcdf12e6f3481a50e2788f5d1b4e3.zip |
Raising element creation errors up outside the "create" method, so that tests can more easily tell when an object is invalid.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1597 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/types/type.rb')
-rw-r--r-- | test/types/type.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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, |