diff options
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 |