summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-09-18 10:24:37 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-10-17 23:20:24 +0530
commit53a48e49f0a8e474a287698dc93ce9727358b467 (patch)
tree9c22769df2bc32ee4938a048dce8a3e13438f0da /spec
parent0b3c7093d2a5b2e81aaab568bc55f122124cfb04 (diff)
downloadchef-53a48e49f0a8e474a287698dc93ce9727358b467.tar.gz
Access hash directly instead of Hash#fetch
- Rename "expanded_cookbooks" to "cookbooks". Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/data_collector_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb
index 28d677aa6a..5eeeec1498 100644
--- a/spec/unit/data_collector_spec.rb
+++ b/spec/unit/data_collector_spec.rb
@@ -46,7 +46,7 @@ describe Chef::DataCollector do
let(:run_list) { node.run_list }
- let(:expanded_cookbooks) { node.fetch("cookbooks", {}) }
+ let(:cookbooks) { node.fetch("cookbooks", {}) }
let(:run_id) { run_status.run_id }
@@ -214,7 +214,7 @@ describe Chef::DataCollector do
end
it "has a cookbooks" do
- expect_converge_message("expanded_cookbooks" => expanded_cookbooks)
+ expect_converge_message("cookbooks" => cookbooks)
send_run_failed_or_completed_event
end