summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-01-22 10:57:20 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-01-22 10:57:20 -0800
commit34a09206c12e0bb8b658ebd8a64a76411a17afd6 (patch)
tree3e5d313e61e9c4032302ecbe1979be9a4274704f /spec/unit
parentfc84ad29bf1a365e343b5bb3d4206663269420cc (diff)
downloadchef-34a09206c12e0bb8b658ebd8a64a76411a17afd6.tar.gz
Chef-14 Breaking: remove node.set and node.set_unlesslcg/remove-node-set
been deprecated since late-12. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/node_spec.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb
index 7dc972b5a0..2019f1ac42 100644
--- a/spec/unit/node_spec.rb
+++ b/spec/unit/node_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
-# Copyright:: Copyright 2008-2017, Chef Software Inc.
+# Copyright:: Copyright 2008-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -303,20 +303,6 @@ describe Chef::Node do
expect(node["tags"]).to eq(%w{one two three four})
end
- it "set is a deprecated alias for normal" do
- Chef::Config[:treat_deprecation_warnings_as_errors] = false
- expect(Chef).to receive(:deprecated).with(:attributes, /set is deprecated/)
- node.set[:snoopy][:is_a_puppy] = true
- expect(node.normal[: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(:deprecated).with(:attributes, /set_unless is deprecated/)
- node.set_unless[:snoopy][:is_a_puppy] = false
- expect(node.normal[:snoopy][:is_a_puppy]).to eq(false)
- end
-
it "normal_unless sets a value even if default or override attrs are set" do
node.default[:decontamination] = true
node.override[:decontamination] = false