summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorZeust the Unoobian <2noob2banoob@gmail.com>2019-12-05 14:41:15 +0100
committerZeust the Unoobian <2noob2banoob@gmail.com>2019-12-09 13:46:47 +0100
commitd3f2a1b9e0bc6f8356b988b07d4a9af1f042e8dd (patch)
tree14f087f28c7f7d2985a89f7fd1e396ddb0ece394 /spec
parent5697cc0837a5365df2c663110ee43aba3c3bb4bb (diff)
downloadchef-d3f2a1b9e0bc6f8356b988b07d4a9af1f042e8dd.tar.gz
Specify item path in Node.read! error message
Obvious fix.
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/node/vivid_mash_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/node/vivid_mash_spec.rb b/spec/unit/node/vivid_mash_spec.rb
index 575d8c3321..098da46d70 100644
--- a/spec/unit/node/vivid_mash_spec.rb
+++ b/spec/unit/node/vivid_mash_spec.rb
@@ -163,15 +163,15 @@ describe Chef::Node::VividMash do
end
it "throws an exception when attributes do not exist" do
- expect { vivid.read!("one", "five", "six") }.to raise_error(Chef::Exceptions::NoSuchAttribute)
+ expect { vivid.read!("one", "five", "six") }.to raise_error(Chef::Exceptions::NoSuchAttribute, "one.five.six")
end
it "throws an exception when traversing a non-container" do
- expect { vivid.read!("one", "two", "three", "four") }.to raise_error(Chef::Exceptions::NoSuchAttribute)
+ expect { vivid.read!("one", "two", "three", "four") }.to raise_error(Chef::Exceptions::NoSuchAttribute, "one.two.three.four")
end
it "throws an exception when an array element does not exist" do
- expect { vivid.read!("array", 3) }.to raise_error(Chef::Exceptions::NoSuchAttribute)
+ expect { vivid.read!("array", 3) }.to raise_error(Chef::Exceptions::NoSuchAttribute, "array.3")
end
end