diff options
author | danielsdeleo <dan@opscode.com> | 2012-10-10 14:06:01 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-10-19 14:15:59 -0700 |
commit | 35157bd1a64a29e8cc44853e6cee8ae0ae07a745 (patch) | |
tree | aa78f7745373376d589bd1bc726330cf511c1994 /chef/spec/unit | |
parent | d489549de16f15660c600dc100f22084194feeca (diff) | |
download | chef-35157bd1a64a29e8cc44853e6cee8ae0ae07a745.tar.gz |
[CHEF-2992] remove `seen_recipes` from node
Use RunContext#loaded_recipe? instead.
Diffstat (limited to 'chef/spec/unit')
-rw-r--r-- | chef/spec/unit/node_spec.rb | 9 | ||||
-rw-r--r-- | chef/spec/unit/recipe_spec.rb | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/chef/spec/unit/node_spec.rb b/chef/spec/unit/node_spec.rb index 2be154c5b3..5ca26b7383 100644 --- a/chef/spec/unit/node_spec.rb +++ b/chef/spec/unit/node_spec.rb @@ -66,10 +66,6 @@ describe Chef::Node do it "should have a template_cache hash" do @node.run_state[:template_cache].should be_a_kind_of(Hash) end - - it "should have a seen_recipes hash" do - @node.run_state[:seen_recipes].should be_a_kind_of(Hash) - end end describe "initialize" do @@ -452,11 +448,6 @@ describe Chef::Node do # @node.recipe?("not at home").should eql(false) # end # - # it "should allow you to query whether or not a recipe has been applied, even if it was included" do - # @node.run_state[:seen_recipes]["snakes"] = true - # @node.recipe?("snakes").should eql(true) - # end - # # it "should return false if a recipe has not been seen" do # @node.recipe?("snakes").should eql(false) # end diff --git a/chef/spec/unit/recipe_spec.rb b/chef/spec/unit/recipe_spec.rb index 797e566190..4615bcb4d4 100644 --- a/chef/spec/unit/recipe_spec.rb +++ b/chef/spec/unit/recipe_spec.rb @@ -206,9 +206,9 @@ describe Chef::Recipe do res.pretty_kitty.should eql(true) end - it "should store that it has seen a recipe in node.run_state[:seen_recipes]" do + it "should store that it has seen a recipe in the run_context" do @run_context.include_recipe "openldap" - @node.run_state[:seen_recipes].should have_key("openldap") + @run_context.loaded_recipe?("openldap").should be_true end it "should not include the same recipe twice" do |