summaryrefslogtreecommitdiff
path: root/spec/unit/property_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-09-01 10:53:55 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-09-01 10:53:55 -0700
commit632e4cb3083f3932df3b7fec89a1d52b5d5ed570 (patch)
tree9fbaa6bc5f0cc50649c646dd8ac7c2d089c3908d /spec/unit/property_spec.rb
parent6c8f6d834c30216aa8d566345c96ae62520013e8 (diff)
downloadchef-632e4cb3083f3932df3b7fec89a1d52b5d5ed570.tar.gz
Revert "more warning to debug"
This reverts commit 6c8f6d834c30216aa8d566345c96ae62520013e8.
Diffstat (limited to 'spec/unit/property_spec.rb')
-rw-r--r--spec/unit/property_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb
index b2e9e2acde..55eaead9ba 100644
--- a/spec/unit/property_spec.rb
+++ b/spec/unit/property_spec.rb
@@ -476,8 +476,8 @@ describe "Chef::Resource.property" do
end
end
- it "when a property is declared with default: {}, a debug level warning is issued" do
- expect(Chef::Log).to receive(:debug).with(match(/^Property .+\.x has an array or hash default \(\{\}\)\. This means that if one resource modifies or appends to it, all other resources of the same type will also see the changes\. Either freeze the constant with \`\.freeze\` to prevent appending, or use lazy \{ \{\} \}\.$/))
+ it "when a property is declared with default: {}, a warning is issued" do
+ expect(Chef::Log).to receive(:warn).with(match(/^Property .+\.x has an array or hash default \(\{\}\)\. This means that if one resource modifies or appends to it, all other resources of the same type will also see the changes\. Either freeze the constant with \`\.freeze\` to prevent appending, or use lazy \{ \{\} \}\.$/))
resource_class.class_eval("property :x, default: {}", __FILE__, __LINE__)
expect(resource.x).to eq({})
end