summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-16 15:06:36 -0800
committerTim Smith <tsmith@chef.io>2017-12-16 15:06:36 -0800
commite04eb4a65d30e9a140bb02ccb597d5dc33508a64 (patch)
treebada54f48c568f317e2eb556afde0c7a1991f70e
parent1016e4e87d02d309b96bed99e7fb006a3aa958f4 (diff)
downloadchef-msu_and_cab_defaults.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.rb5
-rw-r--r--spec/unit/resource/msu_package_spec.rb5
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")