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.
2 parents 53d4f71 + 18407ce commit 189f0b7Copy full SHA for 189f0b7
lib/rspec-puppet/consts.rb
@@ -10,7 +10,7 @@ module RSpec::Puppet::Consts
10
windows: {
11
'File::PATH_SEPARATOR' => ';',
12
'File::ALT_SEPARATOR' => '\\',
13
- 'Pathname::SEPARATOR_PAT' => /[#{Regexp.quote("\\")}#{Regexp.quote('/')}]/
+ 'Pathname::SEPARATOR_PAT' => /[#{Regexp.quote('\\')}#{Regexp.quote('/')}]/
14
}
15
}.freeze
16
lib/rspec-puppet/support.rb
@@ -405,7 +405,7 @@ def setup_puppet
405
406
def with_vardir
407
vardir = setup_puppet
408
- return yield(vardir) if block_given?
+ yield(vardir) if block_given?
409
ensure
410
FileUtils.rm_rf(vardir) if vardir && File.directory?(vardir)
411
end
0 commit comments