summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 19:18:04 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 19:18:04 -0800
commit6c3d64acbe052340972bba3bfc162d39a9fc240e (patch)
tree0264bbfd9d189c4dc387af4e031c82e81fe656a4
parente42e6fe2d0c971882451d27c986b9930de7d2ffe (diff)
downloadchef-6c3d64acbe052340972bba3bfc162d39a9fc240e.tar.gz
fix busted spec exposed by rpsec-2.14-ization
the behavior it is testing has never worked. it can't really work since you're blowing up in String#[]= long before you could hit the attribute code. changed the test to test something slightly more useful.
-rw-r--r--spec/unit/node/attribute_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb
index 5a7c57807a..ef3fc60cc6 100644
--- a/spec/unit/node/attribute_spec.rb
+++ b/spec/unit/node/attribute_spec.rb
@@ -437,7 +437,7 @@ describe Chef::Node::Attribute do
it "should let you set an attribute value when another hash has an intermediate value" do
@attributes.normal["the_ghost"] = { "exterminate" => "the future" }
- lambda { @attributes.normal["the_ghost"]["exterminate"]["tomorrow"] = false }.should_not raise_error
+ lambda { @attributes.normal["the_ghost"]["eviscerate"]["tomorrow"] = false }.should_not raise_error
end
it "should set the attribute value" do