summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-30 00:46:38 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-30 00:46:38 +0000
commit1e8e7ee55a11b0fe472e6efb3457cf7ce527cbed (patch)
tree543703719418f30cfede5415be94c346b70c6a13 /test
parent4863012792cbc3039e392069df9806790d591ea1 (diff)
Fixing #567. I overrode the propertychanges method to only return changes if the file exists or if the file has a property that could create the file.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2371 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/types/file.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ral/types/file.rb b/test/ral/types/file.rb
index 9f7861787..e48b246d1 100755
--- a/test/ral/types/file.rb
+++ b/test/ral/types/file.rb
@@ -1775,6 +1775,15 @@ class TestFile < Test::Unit::TestCase
assert(fobj, "did not create file object")
assert(fobj.should(:ensure) != :directory, "ensure was passed to child")
end
+
+ # #567
+ def test_missing_files_are_in_sync
+ file = tempfile
+ obj = Puppet::Type.newfile(:path => file, :mode => 0755)
+
+ changes = obj.evaluate
+ assert(changes.empty?, "Missing file with no ensure resulted in changes")
+ end
end
# $Id$