summaryrefslogtreecommitdiff
path: root/spec/unit/provider
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-08-17 09:28:35 -0500
committerJay Mundrawala <jdmundrawala@gmail.com>2015-08-17 09:30:23 -0500
commitc1f6c7f65bb19f08e985efd3b6ffbab5a376704f (patch)
tree3f78e022a8cfb2418b5e37505076a36e992670db /spec/unit/provider
parentbacb2ff93ccc2e14a0b721988e241a1d07f70795 (diff)
downloadchef-c1f6c7f65bb19f08e985efd3b6ffbab5a376704f.tar.gz
Fix failing directory unit tests on rheljdm/rhel-dir-spec
do_selinux needs to be mocked out so it does not actually do anything. Otherwise, it will be available on rhel and the tests are no longer unit and will fail
Diffstat (limited to 'spec/unit/provider')
-rw-r--r--spec/unit/provider/directory_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/provider/directory_spec.rb b/spec/unit/provider/directory_spec.rb
index e79f41d9f4..4fad8c8906 100644
--- a/spec/unit/provider/directory_spec.rb
+++ b/spec/unit/provider/directory_spec.rb
@@ -203,6 +203,7 @@ describe Chef::Provider::Directory do
allow(node).to receive(:[]).with("platform").and_return('mac_os_x')
new_resource.path "/usr/bin/chef_test"
new_resource.recursive false
+ allow_any_instance_of(Chef::Provider::File).to receive(:do_selinux)
end
it "os x 10.10 can write to sip locations" do