diff options
author | Luke Kanies <luke@madstop.com> | 2005-07-12 13:32:31 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-07-12 13:32:31 +0000 |
commit | 78bcfdc1e21e7ad4d89b990fd0cf6d87db563d51 (patch) | |
tree | 005a4ca455ebd1ece8ef4a7358fd7ad172c360c6 /test | |
parent | 99a9f4b0c16b42ea16e1df9e38714697215fc308 (diff) | |
download | puppet-78bcfdc1e21e7ad4d89b990fd0cf6d87db563d51.tar.gz puppet-78bcfdc1e21e7ad4d89b990fd0cf6d87db563d51.tar.xz puppet-78bcfdc1e21e7ad4d89b990fd0cf6d87db563d51.zip |
adding path stuff everywhere, although i had to keep component names kind of funky
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@378 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rw-r--r-- | test/types/tc_basic.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/types/tc_basic.rb b/test/types/tc_basic.rb index cd567855c..d3519a9be 100644 --- a/test/types/tc_basic.rb +++ b/test/types/tc_basic.rb @@ -21,7 +21,10 @@ class TestBasic < Test::Unit::TestCase Puppet[:loglevel] = :debug if __FILE__ == $0 assert_nothing_raised() { - @component = Puppet::Component.new(:name => "yaytest") + @component = Puppet::Component.new( + :name => "yaytest", + :type => "testing" + ) } assert_nothing_raised() { @@ -107,4 +110,12 @@ class TestBasic < Test::Unit::TestCase transaction.evaluate } end + + def test_paths + [@configfile,@sleeper,@component].each { |obj| + assert_nothing_raised { + assert(obj.path.is_a?(Array)) + } + } + end end |