diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/lib/puppet_spec/files.rb | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/spec/lib/puppet_spec/files.rb b/spec/lib/puppet_spec/files.rb index 896fdac..08699f6 100644 --- a/spec/lib/puppet_spec/files.rb +++ b/spec/lib/puppet_spec/files.rb @@ -6,14 +6,10 @@ require 'pathname'  # A support module for testing files.  module PuppetSpec::Files    def self.cleanup -      begin -        Dir.unstub(:entries) -        FileUtils.rm_rf path, secure: true -      rescue Errno::ENOENT -        # nothing to do -      end      @global_tempfiles ||= []      while path = @global_tempfiles.pop +      Dir.unstub(:entries) +      FileUtils.rm_rf path, secure: true      end    end | 
