summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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