summaryrefslogtreecommitdiff
path: root/spec/unit/node_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-31 09:34:08 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-31 09:34:08 -0700
commitc16cdbb69e4397400eb0237ac2be042a933248c9 (patch)
tree3acf7c4fe6a0e7d74d0c354ccb7952704ba9f266 /spec/unit/node_spec.rb
parent7a1a19a14942636a2dd7ff17a64f44250dd3980e (diff)
downloadchef-c16cdbb69e4397400eb0237ac2be042a933248c9.tar.gz
remove more deprecated method_missing access
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r--spec/unit/node_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb
index 40780e523b..73f0e6da09 100644
--- a/spec/unit/node_spec.rb
+++ b/spec/unit/node_spec.rb
@@ -265,12 +265,6 @@ describe Chef::Node do
expect(node[:snoopy][:is_a_puppy]).to eq(true)
end
- it "should allow you to set an attribute with set_unless with method_missing but emit a deprecation warning" do
- Chef::Config[:treat_deprecation_warnings_as_errors] = false
- node.normal_unless.snoopy.is_a_puppy = false
- expect(node[:snoopy][:is_a_puppy]).to eq(false)
- end
-
it "should allow you to set an attribute with set_unless" do
node.normal_unless[:snoopy][:is_a_puppy] = false
expect(node[:snoopy][:is_a_puppy]).to eq(false)