diff options
author | Tim Smith <tsmith@chef.io> | 2020-03-27 13:53:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 13:53:04 -0700 |
commit | bde170ba297d046a8808497875f15a6347ca603d (patch) | |
tree | bd5bcab8547f46604d49c4c4a166da9504bfa235 /spec | |
parent | 24b04cc0cd19b2b17a185b138d204778fe009b08 (diff) | |
parent | b45df41d124d0b11f7f56b38a2dab4b74e66a7f9 (diff) | |
download | chef-bde170ba297d046a8808497875f15a6347ca603d.tar.gz |
Merge pull request #9524 from MsysTechnologiesllc/sangmeshA/Fix_windows_share_cannot_modify_frozen_String
Fixed windows share cannot modify frozen string bug
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/windows_share_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/resource/windows_share_spec.rb b/spec/unit/resource/windows_share_spec.rb index 365d2c7b11..c86465e7c8 100644 --- a/spec/unit/resource/windows_share_spec.rb +++ b/spec/unit/resource/windows_share_spec.rb @@ -38,9 +38,11 @@ describe Chef::Resource::WindowsShare do end it "coerces path to a single path separator format" do - resource.path("C:/chef") + resource.path("C:/chef".freeze) expect(resource.path).to eql("C:\\chef") resource.path("C:\\chef") expect(resource.path).to eql("C:\\chef") + resource.path("C:/chef".dup) + expect(resource.path).to eql("C:\\chef") end end |