summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-03-08 11:15:54 +0000
committerGitHub <noreply@github.com>2017-03-08 11:15:54 +0000
commit1ce9ea4fc0a38c8852dd2ddfa45be663d5ff64a9 (patch)
treeb3199213f706e45422ecb50cf482fbc3ac8960ea /spec/unit
parentd58ede971714682af48607b80379e428f39a156c (diff)
parentb97382985b33050bdd2add585578e442fea9daa5 (diff)
downloadchef-1ce9ea4fc0a38c8852dd2ddfa45be663d5ff64a9.tar.gz
Merge pull request #5871 from chef/lcg/chef-resource-properties
convert additional resource methods to properties
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/resource_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index 0f8540b855..481a379743 100644
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -480,9 +480,9 @@ describe Chef::Resource do
it "should include the default in the hash" do
expect(resource.to_hash.keys.sort).to eq([:a, :allowed_actions, :params, :provider, :updated,
:updated_by_last_action, :before,
- :noop, :ignore_failure, :name, :source_line,
- :action, :retries, :retry_delay, :elapsed_time,
- :default_guard_interpreter, :guard_interpreter, :sensitive].sort)
+ :noop, :name, :source_line,
+ :action, :elapsed_time,
+ :default_guard_interpreter, :guard_interpreter].sort)
expect(resource.to_hash[:name]).to eq "funk"
expect(resource.to_hash[:a]).to eq 1
end
@@ -492,9 +492,9 @@ describe Chef::Resource do
hash = resource.to_hash
expected_keys = [ :allowed_actions, :params, :provider, :updated,
:updated_by_last_action, :before,
- :noop, :ignore_failure, :name, :source_line,
- :action, :retries, :retry_delay, :elapsed_time,
- :default_guard_interpreter, :guard_interpreter, :sensitive ]
+ :noop, :name, :source_line,
+ :action, :elapsed_time,
+ :default_guard_interpreter, :guard_interpreter ]
expect(hash.keys - expected_keys).to eq([])
expect(expected_keys - hash.keys).to eq([])
expect(hash[:name]).to eql("funk")