From dc4fb9db8005f3c082fb6a8406d338270a866962 Mon Sep 17 00:00:00 2001 From: Ben Abrams Date: Tue, 5 Jun 2018 09:22:21 -0700 Subject: [PATCH] fixing unit test for chef 13,14 as node.set is deprecated --- test/unit/default_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/default_spec.rb b/test/unit/default_spec.rb index 9bee830f..6ba5514a 100644 --- a/test/unit/default_spec.rb +++ b/test/unit/default_spec.rb @@ -69,7 +69,7 @@ let(:chef_run) do ChefSpec::ServerRunner.new(:platform => "redhat", :version => "7.3") do |node, server| server.create_data_bag("sensu", ssl_data_bag_item) - node.set["sensu"]["yum_repo_releasever"] = "dory" + node.override["sensu"]["yum_repo_releasever"] = "dory" end.converge(described_recipe) end