summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-10 04:47:37 +0000
committerLuke Kanies <luke@madstop.com>2005-07-10 04:47:37 +0000
commit5b7fd635d3829e037ffc4ef511ca34d752c3e6b4 (patch)
tree14600d071aeb064c66123e6f7070d39b7a01db70
parent9e0ab28780521c68c0b40377f86f8cd113acfe5c (diff)
downloadpuppet-5b7fd635d3829e037ffc4ef511ca34d752c3e6b4.tar.gz
puppet-5b7fd635d3829e037ffc4ef511ca34d752c3e6b4.tar.xz
puppet-5b7fd635d3829e037ffc4ef511ca34d752c3e6b4.zip
fixing some nasty bugs related to parameter checking
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@346 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--test/types/tc_type.rb14
1 files changed, 14 insertions, 0 deletions
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,6 +72,7 @@ class TestType < Test::Unit::TestCase
file = Puppet::Type::PFile.new(
"path" => path,
"create" => true,
+ "recurse" => true,
"checksum" => "md5"
)
}
@@ -78,6 +80,18 @@ class TestType < Test::Unit::TestCase
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
}
end