summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-10-17 15:39:41 -0700
committerdanielsdeleo <dan@opscode.com>2012-10-19 14:15:59 -0700
commit3718271ddaa98986fd0b5d2ba9a714ab79408b72 (patch)
treecc4a6c698a1ddb2f64cc04269ac154a89f754c0f
parentddaf9cac6123fa459132c15b3f219f03578dcefb (diff)
downloadchef-3718271ddaa98986fd0b5d2ba9a714ab79408b72.tar.gz
[CHEF-2992] also remove vestigial template_cache
-rw-r--r--chef/lib/chef/node.rb4
-rw-r--r--chef/spec/unit/node_spec.rb5
2 files changed, 4 insertions, 5 deletions
diff --git a/chef/lib/chef/node.rb b/chef/lib/chef/node.rb
index eef6aeb139..9224989803 100644
--- a/chef/lib/chef/node.rb
+++ b/chef/lib/chef/node.rb
@@ -157,9 +157,7 @@ class Chef
@couchdb_id = nil
@couchdb = couchdb || Chef::CouchDB.new
- @run_state = {
- :template_cache => Hash.new
- }
+ @run_state = {}
end
def couchdb_id=(value)
diff --git a/chef/spec/unit/node_spec.rb b/chef/spec/unit/node_spec.rb
index 7736e0bbf2..6b430bd14e 100644
--- a/chef/spec/unit/node_spec.rb
+++ b/chef/spec/unit/node_spec.rb
@@ -63,8 +63,9 @@ describe Chef::Node do
end
describe "run_state" do
- it "should have a template_cache hash" do
- @node.run_state[:template_cache].should be_a_kind_of(Hash)
+ it "is an empty hash" do
+ @node.run_state.should respond_to(:keys)
+ @node.run_state.should be_empty
end
end