summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mullins <rmullins@secureworks.com>2017-03-07 13:17:06 -0500
committerRobert Mullins <rmullins@secureworks.com>2017-03-08 11:43:58 -0500
commit0b7fe6d110dba303c91e7ed2ff2afefa648aea6f (patch)
tree859580388081f71a319c2d001dd26c03027dfd95
parent59d3b45c758b891455d04a18b94c7a188e32454a (diff)
downloadchef-0b7fe6d110dba303c91e7ed2ff2afefa648aea6f.tar.gz
ensure tests are setup correctly and fix typo
Signed-off-by: Robert Mullins <rmullins@secureworks.com>
-rw-r--r--lib/chef/blacklist.rb2
-rw-r--r--spec/unit/node_spec.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/blacklist.rb b/lib/chef/blacklist.rb
index 793944cc05..3c2f4f7baa 100644
--- a/lib/chef/blacklist.rb
+++ b/lib/chef/blacklist.rb
@@ -57,7 +57,7 @@ class Chef
return nil
end
- item_ref.del(parts[-1])
+ item_ref.delete(parts[-1])
data
end
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb
index 01100c914d..bec15032d9 100644
--- a/spec/unit/node_spec.rb
+++ b/spec/unit/node_spec.rb
@@ -1635,12 +1635,10 @@ describe Chef::Node do
selected_data = {
"automatic" => {
"filesystem" => {
- "/dev/disk0s2" => nil,
"map - autohome" => { "size" => "10mb" },
},
"network" => {
"interfaces" => {
- "eth0" => nil,
"eth1" => {},
},
},