summaryrefslogtreecommitdiffstats
path: root/spec/unit/resource
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2011-03-31 16:30:17 -0700
committerMarkus Roberts <Markus@reality.com>2011-03-31 16:43:24 -0700
commit7b83cd9ff9f2e2b61ce4c99057ec0697140a5a5e (patch)
tree98da7a0278b20f27779ac9102ba01da618bb6c50 /spec/unit/resource
parentf76db9e8ce98dde154cbee971dcaecd9f8e73510 (diff)
downloadpuppet-7b83cd9ff9f2e2b61ce4c99057ec0697140a5a5e.tar.gz
puppet-7b83cd9ff9f2e2b61ce4c99057ec0697140a5a5e.tar.xz
puppet-7b83cd9ff9f2e2b61ce4c99057ec0697140a5a5e.zip
(6911) Refactor to localize eval_generate dependency assumptions
To implement #6911 we will need to be able to make incremental descisions about order of application based only on the contents of the resource graph and local "working data." This commit begins to pull the needed structure into a method (visit_resources) while, for the moment, maintaining the original semantic. Paired-with: Jesse Wolfe
Diffstat (limited to 'spec/unit/resource')
-rwxr-xr-xspec/unit/resource/catalog_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/unit/resource/catalog_spec.rb b/spec/unit/resource/catalog_spec.rb
index 42850c23b..411d10b32 100755
--- a/spec/unit/resource/catalog_spec.rb
+++ b/spec/unit/resource/catalog_spec.rb
@@ -398,12 +398,6 @@ describe Puppet::Resource::Catalog, "when compiling" do
relgraph.should be_vertex(@one)
end
- it "should yield added resources if a block is provided" do
- yielded = []
- @catalog.add_resource(@one, @two) { |r| yielded << r }
- yielded.length.should == 2
- end
-
it "should set itself as the resource's catalog if it is not a relationship graph" do
@one.expects(:catalog=).with(@catalog)
@catalog.add_resource @one