We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66d5fdf commit cf562a8Copy full SHA for cf562a8
spec/lib/puppet_spec/files.rb
@@ -9,12 +9,10 @@ def self.cleanup
9
# rubocop:disable Style/GlobalVars
10
$global_tempfiles ||= []
11
$global_tempfiles.each do |path|
12
- begin
13
- allow(Dir).to receive(:entries).and_call_original
14
- FileUtils.rm_rf path, secure: true
15
- rescue Errno::ENOENT
16
- # nothing to do
17
- end
+ allow(Dir).to receive(:entries).and_call_original
+ FileUtils.rm_rf path, secure: true
+ rescue Errno::ENOENT
+ # nothing to do
18
end
19
$global_tempfiles = []
20
# rubocop:enable Style/GlobalVars
0 commit comments