summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional/execute_resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared/functional/execute_resource.rb')
-rw-r--r--spec/support/shared/functional/execute_resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/functional/execute_resource.rb b/spec/support/shared/functional/execute_resource.rb
index 1a14bb38c3..e5639f1614 100644
--- a/spec/support/shared/functional/execute_resource.rb
+++ b/spec/support/shared/functional/execute_resource.rb
@@ -58,7 +58,7 @@ shared_context "a command that can be executed as an alternate user" do
include Chef::Mixin::ShellOut
before do
- shell_out!("icacls \"#{script_output_dir.gsub(/\//, '\\')}\" /grant \"authenticated users:(F)\"")
+ shell_out!("icacls \"#{script_output_dir.gsub(%r{/}, '\\')}\" /grant \"authenticated users:(F)\"")
end
after do