diff options
author | Gheorghe Popescu <gheorghe.popescu@puppet.com> | 2021-03-12 09:14:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 09:14:24 +0200 |
commit | c63ef326bfd2cdd96bbfc3aa368358e301dd7b66 (patch) | |
tree | 89d5f38a26cb801ce69ce77a3a8c36cd2eb4541a /spec/lib/puppet_spec/files.rb | |
parent | 7c3c42cecb1b864d026404c551374b1d95ee7d95 (diff) | |
parent | 9596250a8c0d4263c8ecc7b4c84e4df4ee57b968 (diff) | |
download | puppet-cron_core-c63ef326bfd2cdd96bbfc3aa368358e301dd7b66.tar.gz puppet-cron_core-c63ef326bfd2cdd96bbfc3aa368358e301dd7b66.tar.bz2 |
Merge pull request #43 from GabrielNagy/MODULES-10953/update-metadata
Diffstat (limited to 'spec/lib/puppet_spec/files.rb')
-rw-r--r-- | spec/lib/puppet_spec/files.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/puppet_spec/files.rb b/spec/lib/puppet_spec/files.rb index c8315c9..af0e936 100644 --- a/spec/lib/puppet_spec/files.rb +++ b/spec/lib/puppet_spec/files.rb @@ -10,7 +10,7 @@ module PuppetSpec::Files $global_tempfiles ||= [] $global_tempfiles.each do |path| begin - Dir.unstub(:entries) + allow(Dir).to receive(:entries).and_call_original FileUtils.rm_rf path, secure: true rescue Errno::ENOENT # rubocop:disable Lint/HandleExceptions # nothing to do |