summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanga17 <sausekar@msystechnologies.com>2020-03-24 09:59:42 +0530
committerTim Smith <tsmith84@gmail.com>2020-03-31 13:18:26 -0700
commit08ec8d7096144a64559c6c6590b42e63222a914e (patch)
treeb14005a1bff888d2cd9882d73a3a6e572dbeafac
parent08d3871bb682ca7adf24622c2ca849788ab8f667 (diff)
downloadchef-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.rb4
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