summaryrefslogtreecommitdiff
path: root/spec/support/shared/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-07 12:47:25 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-07 12:49:48 -0800
commitb97382985b33050bdd2add585578e442fea9daa5 (patch)
treef98a579eab2429ca06e8be7fef0c32d6b4453250 /spec/support/shared/unit
parent5c63b80bf9e005864fcfcc73a7e822045271f325 (diff)
downloadchef-b97382985b33050bdd2add585578e442fea9daa5.tar.gz
convert additional resource methods to propertieslcg/chef-resource-properties
converts sensitive, retries, retry_delay and ignore_failure to properties Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/support/shared/unit')
-rw-r--r--spec/support/shared/unit/execute_resource.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/support/shared/unit/execute_resource.rb b/spec/support/shared/unit/execute_resource.rb
index 2c556bb6cd..ae56a9697d 100644
--- a/spec/support/shared/unit/execute_resource.rb
+++ b/spec/support/shared/unit/execute_resource.rb
@@ -132,15 +132,12 @@ shared_examples_for "an execute resource" do
end
it "should be true if the password is non-nil" do
- expect(@resource.sensitive).to eq(false)
@resource.password("we.funk!")
expect(@resource.sensitive).to eq(true)
end
it "should be true if the password is non-nil but the value is explicitly set to false" do
- expect(@resource.sensitive).to eq(false)
@resource.password("we.funk!")
- expect(@resource.sensitive).to eq(true)
@resource.sensitive false
expect(@resource.sensitive).to eq(true)
end