diff options
| author | Luke Kanies <luke@madstop.com> | 2009-07-23 16:51:22 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-07-25 12:00:02 +1000 |
| commit | b3b76dffdd9cd8ed5c3d0230624bf05015bec5b8 (patch) | |
| tree | 169d9be6b86aa460f1a563c2821874ddb12cc974 /spec/unit | |
| parent | 9120712f97c12dad0c743271b4f64cf545319b69 (diff) | |
| download | puppet-b3b76dffdd9cd8ed5c3d0230624bf05015bec5b8.tar.gz puppet-b3b76dffdd9cd8ed5c3d0230624bf05015bec5b8.tar.xz puppet-b3b76dffdd9cd8ed5c3d0230624bf05015bec5b8.zip | |
Fixing #2296 - overlapping recursions work again
This fixes the behaviour when you have file recursions
that overlap - we again correctly use the most
specific information.
It's still a bit expensive when you do this, but
at least it behaves correctly, and it should be
a rare circumstance.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/type/file.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/unit/type/file.rb b/spec/unit/type/file.rb index 627cac41a..6ec86e7a1 100755 --- a/spec/unit/type/file.rb +++ b/spec/unit/type/file.rb @@ -12,8 +12,7 @@ describe Puppet::Type.type(:file) do @path = pathname @file = Puppet::Type::File.new(:name => @path) - @catalog = mock 'catalog' - @catalog.stub_everything + @catalog = Puppet::Resource::Catalog.new @file.catalog = @catalog end @@ -108,7 +107,6 @@ describe Puppet::Type.type(:file) do :path => @link, :mode => "755" ) - @catalog = Puppet::Resource::Catalog.new @catalog.add_resource @resource end @@ -513,9 +511,6 @@ describe Puppet::Type.type(:file) do describe "when returning resources with :eval_generate" do before do - @catalog = mock 'catalog' - @catalog.stub_everything - @graph = stub 'graph', :add_edge => nil @catalog.stubs(:relationship_graph).returns @graph |
