diff options
author | sanga17 <sausekar@msystechnologies.com> | 2020-03-24 09:59:42 +0530 |
---|---|---|
committer | sanga17 <sausekar@msystechnologies.com> | 2020-03-24 09:59:42 +0530 |
commit | 084283130fc4cf97dfc623f511f10ad6fe3ad7eb (patch) | |
tree | 9b955dbdba49f9865b1f81dbb95cdb35c0cbeb77 /spec/unit | |
parent | 885d8c4d2994e1282e13bc982f2906ba6d354bda (diff) | |
download | chef-084283130fc4cf97dfc623f511f10ad6fe3ad7eb.tar.gz |
Specs added for freezed string and cloned string
Signed-off-by: sanga17 <sausekar@msystechnologies.com>
Diffstat (limited to 'spec/unit')
-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 |