From 5b7fd635d3829e037ffc4ef511ca34d752c3e6b4 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 10 Jul 2005 04:47:37 +0000 Subject: fixing some nasty bugs related to parameter checking git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@346 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/types/tc_type.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/types/tc_type.rb b/test/types/tc_type.rb index a62291bfc..53e6a93da 100644 --- a/test/types/tc_type.rb +++ b/test/types/tc_type.rb @@ -56,6 +56,7 @@ class TestType < Test::Unit::TestCase file = Puppet::Type::PFile.new( :path => path, :create => true, + :recurse => true, :checksum => "md5" ) } @@ -71,12 +72,25 @@ class TestType < Test::Unit::TestCase file = Puppet::Type::PFile.new( "path" => path, "create" => true, + "recurse" => true, "checksum" => "md5" ) } assert_nothing_raised() { file.retrieve } + assert_nothing_raised() { + file[:path] + } + assert_nothing_raised() { + file["path"] + } + assert_nothing_raised() { + file[:recurse] + } + assert_nothing_raised() { + file["recurse"] + } assert_nothing_raised() { file.sync } -- cgit