summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-19 10:58:42 -0800
committerSerdar Sutay <serdar@opscode.com>2014-11-19 15:42:30 -0800
commit5ab8294a46b815edab432f5fdfa93e278732af38 (patch)
treec6e2bc7993a1eb9e8c443d898c29c049c6e6044c
parent999793d7f8c23fd9a533d3c8dd5fa57e7405ebd1 (diff)
downloadchef-5ab8294a46b815edab432f5fdfa93e278732af38.tar.gz
fix reset_cache specs busted by removing that
-rw-r--r--spec/unit/node/attribute_spec.rb44
1 files changed, 0 insertions, 44 deletions
diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb
index 6cdf60550f..67a491595d 100644
--- a/spec/unit/node/attribute_spec.rb
+++ b/spec/unit/node/attribute_spec.rb
@@ -554,7 +554,6 @@ describe Chef::Node::Attribute do
it "should allow the last method to set a value if it has an = sign on the end" do
@attributes.normal.music.mastodon = [ "dream", "still", "shining" ]
- @attributes.reset
expect(@attributes.normal.music.mastodon).to eq([ "dream", "still", "shining" ])
end
end
@@ -1091,49 +1090,6 @@ describe Chef::Node::Attribute do
end
end
- # For expedience, this test is implementation-heavy.
- describe "when a component attribute is mutated" do
- [
- :clear,
- :shift
- ].each do |mutator|
- it "resets the cache when the mutator #{mutator} is called" do
- expect(@attributes).to receive(:reset_cache)
- @attributes.default.send(mutator)
- end
- end
-
- it "resets the cache when the mutator delete is called" do
- expect(@attributes).to receive(:reset_cache)
- @attributes.default.delete(:music)
- end
-
- [
- :merge!,
- :update,
- :replace
- ].each do |mutator|
- it "resets the cache when the mutator #{mutator} is called" do
- # Implementation of Mash means that this could get called many times. That's okay.
- expect(@attributes).to receive(:reset_cache).at_least(1).times
- @attributes.default.send(mutator, {:foo => :bar})
- end
- end
-
- [
- :delete_if,
- :keep_if,
- :reject!,
- :select!,
- ].each do |mutator|
- it "resets the cache when the mutator #{mutator} is called" do
- # Implementation of Mash means that this could get called many times. That's okay.
- expect(@attributes).to receive(:reset_cache).at_least(1).times
- block = lambda {|k,v| true }
- @attributes.default.send(mutator, &block)
- end
- end
- end
describe "when not mutated" do