diff options
author | Tim Smith <tsmith@chef.io> | 2017-12-16 15:06:36 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-12-16 15:06:36 -0800 |
commit | e04eb4a65d30e9a140bb02ccb597d5dc33508a64 (patch) | |
tree | bada54f48c568f317e2eb556afde0c7a1991f70e | |
parent | 1016e4e87d02d309b96bed99e7fb006a3aa958f4 (diff) | |
download | chef-e04eb4a65d30e9a140bb02ccb597d5dc33508a64.tar.gz |
These specs can't be written in a cross platform waymsu_and_cab_defaults
The path helper does exactly what we expect it to and that makes this only work on *nix
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/resource/cab_package_spec.rb | 5 | ||||
-rw-r--r-- | spec/unit/resource/msu_package_spec.rb | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/spec/unit/resource/cab_package_spec.rb b/spec/unit/resource/cab_package_spec.rb index 167cf6e86e..38b9322958 100644 --- a/spec/unit/resource/cab_package_spec.rb +++ b/spec/unit/resource/cab_package_spec.rb @@ -49,11 +49,6 @@ describe Chef::Resource::CabPackage do expect(resource.source).to end_with("package.cab") end - it "does not coerce the source property if it looks like a path" do - resource.source("/foo/bar/package.cab") - expect(resource.source).to eq("/foo/bar/package.cab") - end - it "coerces source property if it does not looks like a path" do resource.source("package.cab") expect(resource.source).not_to eq("package.cab") diff --git a/spec/unit/resource/msu_package_spec.rb b/spec/unit/resource/msu_package_spec.rb index e32fab897d..8b4926798a 100644 --- a/spec/unit/resource/msu_package_spec.rb +++ b/spec/unit/resource/msu_package_spec.rb @@ -48,11 +48,6 @@ describe Chef::Resource::MsuPackage do expect(resource.source).to end_with("package.msu") end - it "does not coerce the source property if it looks like a path" do - resource.source("/foo/bar/package.msu") - expect(resource.source).to eq("/foo/bar/package.msu") - end - it "coerces source property if it does not looks like a path" do resource.source("package.msu") expect(resource.source).not_to eq("package.msu") |