diff options
author | sanga17 <sausekar@msystechnologies.com> | 2020-03-24 09:59:42 +0530 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-31 13:18:26 -0700 |
commit | 08ec8d7096144a64559c6c6590b42e63222a914e (patch) | |
tree | b14005a1bff888d2cd9882d73a3a6e572dbeafac | |
parent | 08d3871bb682ca7adf24622c2ca849788ab8f667 (diff) | |
download | chef-08ec8d7096144a64559c6c6590b42e63222a914e.tar.gz |
Specs added for freezed string and cloned string
Signed-off-by: sanga17 <sausekar@msystechnologies.com>
-rw-r--r-- | spec/unit/resource/windows_share_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/resource/windows_share_spec.rb b/spec/unit/resource/windows_share_spec.rb index 365d2c7b11..406e817a26 100644 --- a/spec/unit/resource/windows_share_spec.rb +++ b/spec/unit/resource/windows_share_spec.rb @@ -42,5 +42,9 @@ describe Chef::Resource::WindowsShare do expect(resource.path).to eql("C:\\chef") resource.path("C:\\chef") expect(resource.path).to eql("C:\\chef") + resource.path("C:/chef".freeze) + expect(resource.path).to eql("C:\\chef") + resource.path("C:/chef".dup) + expect(resource.path).to eql("C:\\chef") end end |