diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-23 11:07:05 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-23 11:07:05 -0800 |
commit | 87079d5014b331da6d55125a2d91c283c395a038 (patch) | |
tree | 9e15a2a7a7b66dee5fd5cb2f765b779c780c698e /spec | |
parent | e9ec5679a629d304d3e23f880540f74dcb602cb8 (diff) | |
download | chef-87079d5014b331da6d55125a2d91c283c395a038.tar.gz |
Revert "fix node assignment of ImmutableArrays to VividMashes/AttrArrays"
This reverts commit e56f8d58b80334256085907961aac9ca9f56f125.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/node/attribute_spec.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb index 42cdf2a9ce..cbb9540486 100644 --- a/spec/unit/node/attribute_spec.rb +++ b/spec/unit/node/attribute_spec.rb @@ -1304,19 +1304,4 @@ describe Chef::Node::Attribute do expect { @attributes["foo"]["bar"][0] << "buzz" }.to raise_error(RuntimeError, "can't modify frozen String") end end - - describe "assigning lazy ungenerated caches to other attributes" do - it "works with arrays" do - @attributes.default["foo"]["baz"] = %w{one two} - @attributes.default["bar"]["baz"] = @attributes["foo"]["baz"] - expect(@attributes.default["bar"]["baz"]).to eql(%w{one two}) - end - - it "works with hashes" do - @attributes.default["foo"]["baz"] = { "one" => "two" } - @attributes.default["bar"]["baz"] = @attributes["foo"]["baz"] - expect(@attributes.default["bar"]["baz"]).to eql({ "one" => "two" }) - end - end - end |