From cccd83853883a84a31f22446e9d3be8501655739 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Fri, 31 Oct 2008 16:19:01 -0500 Subject: Adding a starting point for spec tests for tidy. So far it just validates that lstat is used instead of stat. Signed-off-by: Luke Kanies Conflicts: spec/unit/type/tidy.rb --- lib/puppet/type/file.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb index 35eccef83..c55ff29a7 100644 --- a/lib/puppet/type/file.rb +++ b/lib/puppet/type/file.rb @@ -729,11 +729,6 @@ module Puppet method = :lstat end path = self[:path] - # Just skip them when they don't exist at all. - unless FileTest.exists?(path) or FileTest.symlink?(path) - @stat = nil - return @stat - end if @stat.nil? or refresh == true begin @stat = File.send(method, self[:path]) -- cgit