diff options
author | Jorie Tappa <jorie@jorietappa.com> | 2018-08-01 16:33:33 -0500 |
---|---|---|
committer | Jorie Tappa <jorie@jorietappa.com> | 2018-08-01 16:33:33 -0500 |
commit | ab27f19f5cc54322ec7fe2c4e970f3a54d40881f (patch) | |
tree | 54ae6c6918816d6043a39143e5eccfe1d346b56b /spec | |
parent | 2092ed6816386af0553a6a949877242fb8b6c277 (diff) | |
download | puppet-cron_core-ab27f19f5cc54322ec7fe2c4e970f3a54d40881f.tar.gz puppet-cron_core-ab27f19f5cc54322ec7fe2c4e970f3a54d40881f.tar.bz2 |
Disable Style/GlobalVars violations
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/puppet_spec/files.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/lib/puppet_spec/files.rb b/spec/lib/puppet_spec/files.rb index ebbe1a9..c91f583 100644 --- a/spec/lib/puppet_spec/files.rb +++ b/spec/lib/puppet_spec/files.rb @@ -6,6 +6,7 @@ require 'pathname' # A support module for testing files. module PuppetSpec::Files def self.cleanup + # rubocop:disable Style/GlobalVars $global_tempfiles ||= [] while path = $global_tempfiles.pop begin @@ -15,6 +16,7 @@ module PuppetSpec::Files # nothing to do end end + # rubocop:enable Style/GlobalVars end module_function @@ -91,9 +93,10 @@ module PuppetSpec::Files end def record_tmp(tmp) - # ...record it for cleanup, + # rubocop:disable Style/GlobalVars $global_tempfiles ||= [] $global_tempfiles << tmp + # rubocop:enable Style/GlobalVars end def expect_file_mode(file, mode) |