diff options
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r-- | spec/unit/node_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index cfc19db480..59b4b8a1c7 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -335,14 +335,14 @@ describe Chef::Node do it "set is a deprecated alias for normal" do Chef::Config[:treat_deprecation_warnings_as_errors] = false - expect(Chef).to receive(:log_deprecation).with(/set is deprecated/) + expect(Chef).to receive(:deprecated).with(:attributes, /set is deprecated/) node.set[:snoopy][:is_a_puppy] = true expect(node[:snoopy][:is_a_puppy]).to eq(true) end it "set_unless is a deprecated alias for normal_unless" do Chef::Config[:treat_deprecation_warnings_as_errors] = false - expect(Chef).to receive(:log_deprecation).with(/set_unless is deprecated/) + expect(Chef).to receive(:deprecated).with(:attributes, /set_unless is deprecated/) node.set_unless[:snoopy][:is_a_puppy] = false expect(node[:snoopy][:is_a_puppy]).to eq(false) end |