summaryrefslogtreecommitdiff
path: root/spec/unit/provider/link_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/link_spec.rb')
-rw-r--r--spec/unit/provider/link_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/link_spec.rb b/spec/unit/provider/link_spec.rb
index 31065d7bfd..6bb08551a2 100644
--- a/spec/unit/provider/link_spec.rb
+++ b/spec/unit/provider/link_spec.rb
@@ -39,7 +39,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
end
def canonicalize(path)
- Chef::Platform.windows? ? path.gsub("/", '\\') : path
+ Chef::Platform.windows? ? path.tr("/", '\\') : path
end
describe "when the target is a symlink" do