diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-16 12:52:53 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-16 12:52:53 -0800 |
commit | 7c4670ce77cafb481477e9da75348a75b44c0393 (patch) | |
tree | 62a8d3a7ad3df821140911758d3743e98f62573f /spec/unit/run_context_spec.rb | |
parent | dbd925b357b036447b47cf5f369792f81d69e76d (diff) | |
download | chef-7c4670ce77cafb481477e9da75348a75b44c0393.tar.gz |
CHEF-4777: fix for fully qualifying recipes
this makes it so that the recipes in the attribute will be fully
qualified, and will avoid the problem of both "cookbook" and
"cookbook::default" showing up.
Diffstat (limited to 'spec/unit/run_context_spec.rb')
-rw-r--r-- | spec/unit/run_context_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/unit/run_context_spec.rb b/spec/unit/run_context_spec.rb index aff1f85ead..39b8a8a50d 100644 --- a/spec/unit/run_context_spec.rb +++ b/spec/unit/run_context_spec.rb @@ -45,9 +45,10 @@ describe Chef::RunContext do describe "loading cookbooks for a run list" do before do - @node.should_receive(:loaded_recipe).with("test") - @node.should_receive(:loaded_recipe).with("test::one") - @node.should_receive(:loaded_recipe).with("test::two") + @node.run_list << "test" << "test::one" << "test::two" + @node.should_receive(:loaded_recipe).with(:test, "default") + @node.should_receive(:loaded_recipe).with(:test, "one") + @node.should_receive(:loaded_recipe).with(:test, "two") @run_context.load(@node.run_list.expand('_default')) end |