summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJon Cowie <jonlives@gmail.com>2018-03-05 12:55:05 +0000
committerJon Cowie <jonlives@gmail.com>2018-03-05 12:55:05 +0000
commit34763d721029ec1c32010449195496711d1b576e (patch)
treeba67ce9dd5fee6d1646116973c75a058c8298a60 /spec
parent5913858c27fd7d4c5df27a85d12b9b4008970dc6 (diff)
downloadchef-34763d721029ec1c32010449195496711d1b576e.tar.gz
Make sure before block of specs is calling correct methods now defensive code removedjcowie/poise-hoist
Signed-off-by: Jon Cowie <jonlives@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/policy_builder/policyfile_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/policy_builder/policyfile_spec.rb b/spec/unit/policy_builder/policyfile_spec.rb
index 755b84c954..b8cf56750d 100644
--- a/spec/unit/policy_builder/policyfile_spec.rb
+++ b/spec/unit/policy_builder/policyfile_spec.rb
@@ -688,7 +688,8 @@ describe Chef::PolicyBuilder::Policyfile do
context "with a policy group set" do
before do
Chef::Config[:policy_group] = "policy_group_value"
- policy_builder.apply_policyfile_attributes
+ policy_builder.finish_load_node(node)
+ policy_builder.build_node
end
it "hoists default attributes" do