summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-09-05 09:56:02 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-09-05 09:56:02 -0700
commit3cfabb7d85c316a7fd4bb3e1bd1e258f2651b48c (patch)
tree5c80f16aa10900e84b572be944c91b9c48fccecc
parent03df6156bc759a62a102466454557f3bf63e8e74 (diff)
downloadchef-3cfabb7d85c316a7fd4bb3e1bd1e258f2651b48c.tar.gz
fix specs for deprecation shortening
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/unit/node_map_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/node_map_spec.rb b/spec/unit/node_map_spec.rb
index df70ad380a..9c161f3893 100644
--- a/spec/unit/node_map_spec.rb
+++ b/spec/unit/node_map_spec.rb
@@ -223,7 +223,7 @@ describe Chef::NodeMap do
context "while locked" do
# Uncomment the commented `expect`s in 15.0.
it "rejects setting the same key twice" do
- expect(Chef).to receive(:deprecated).with(:map_collision, /resource foo/)
+ expect(Chef).to receive(:deprecated).with(:map_collision, /Resource foo/)
node_map.set(:foo, FooResource)
node_map.lock!
node_map.set(:foo, BarResource)
@@ -247,7 +247,7 @@ describe Chef::NodeMap do
end
it "rejects setting the same key twice when the first has allow_cookbook_override with a past version" do
- expect(Chef).to receive(:deprecated).with(:map_collision, /resource foo/)
+ expect(Chef).to receive(:deprecated).with(:map_collision, /Resource foo/)
node_map.set(:foo, FooResource, allow_cookbook_override: "< 1")
node_map.lock!
node_map.set(:foo, BarResource)
@@ -263,7 +263,7 @@ describe Chef::NodeMap do
end
it "rejects setting the same key twice for a provider" do
- expect(Chef).to receive(:deprecated).with(:map_collision, /provider foo/)
+ expect(Chef).to receive(:deprecated).with(:map_collision, /Provider foo/)
node_map.set(:foo, FooProvider)
node_map.lock!
node_map.set(:foo, BarProvider)