summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-01-08 11:31:02 -0800
committerdanielsdeleo <dan@opscode.com>2013-01-08 11:31:02 -0800
commit335002d278c0a5ef3a159111fb63dab0d84b0b3f (patch)
tree192877b4da62bb8561f9de58fcdb05195631a8c3
parenteac339b9b3b17f08724320601ec67db1f95d368e (diff)
downloadchef-test-securable-on-file-create.tar.gz
add securable tests to the create file casetest-securable-on-file-create
IOWs, test securable behavior when the starting state is that the file does not exist.
-rw-r--r--spec/support/shared/functional/file_resource.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/shared/functional/file_resource.rb b/spec/support/shared/functional/file_resource.rb
index 04b6e1640d..6be963d7c0 100644
--- a/spec/support/shared/functional/file_resource.rb
+++ b/spec/support/shared/functional/file_resource.rb
@@ -165,6 +165,9 @@ shared_examples_for "a file resource" do
end
context "when the target file does not exist" do
+
+ it_should_behave_like "a securable resource"
+
before do
# Assert starting state is expected
File.should_not exist(path)