diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-13 10:11:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-13 10:30:17 -0800 |
commit | e03661ba4bca1906de7f50aff262e60a6dcaa90a (patch) | |
tree | 7dc0d30c7ee2fd85066840efe5cba36688092632 | |
parent | a97bb7163656e97505918a4f3af765526c8c6a60 (diff) | |
download | chef-e03661ba4bca1906de7f50aff262e60a6dcaa90a.tar.gz |
chefstylelcg/add-nodemap-delete-class-13
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/unit/node_map_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/node_map_spec.rb b/spec/unit/node_map_spec.rb index 1d36c9f38a..20667df475 100644 --- a/spec/unit/node_map_spec.rb +++ b/spec/unit/node_map_spec.rb @@ -139,14 +139,14 @@ describe Chef::NodeMap do describe "deleting classes" do it "deletes a class and removes the mapping completely" do node_map.set(:thing, Bar) - expect( node_map.delete_class(Bar) ).to eql({:thing=>[{:klass=>Bar}]}) + expect( node_map.delete_class(Bar) ).to eql({ :thing => [{ :klass => Bar }] }) expect( node_map.get(node, :thing) ).to eql(nil) end it "deletes a class and leaves the mapping that still has an entry" do node_map.set(:thing, Bar) node_map.set(:thing, Foo) - expect( node_map.delete_class(Bar) ).to eql({:thing=>[{:klass=>Bar}]}) + expect( node_map.delete_class(Bar) ).to eql({ :thing => [{ :klass => Bar }] }) expect( node_map.get(node, :thing) ).to eql(Foo) end @@ -154,7 +154,7 @@ describe Chef::NodeMap do node_map.set(:thing1, Bar) node_map.set(:thing2, Bar) node_map.set(:thing2, Foo) - expect( node_map.delete_class(Bar) ).to eql({:thing1=>[{:klass=>Bar}], :thing2=>[{:klass=>Bar}]}) + expect( node_map.delete_class(Bar) ).to eql({ :thing1 => [{ :klass => Bar }], :thing2 => [{ :klass => Bar }] }) expect( node_map.get(node, :thing1) ).to eql(nil) expect( node_map.get(node, :thing2) ).to eql(Foo) end |