diff options
| author | Luke Kanies <luke@madstop.com> | 2008-09-24 17:46:57 -0500 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-09-25 09:35:27 +1000 |
| commit | 98e79f8b7dbbdcb29c91b6099569e180bd8267c7 (patch) | |
| tree | bc20921e7090e3893fd10f36e499624475cca3f0 /spec/unit/parser | |
| parent | 0040bc87a1a4afac3a97165cd2e6e3c38f373261 (diff) | |
| download | puppet-98e79f8b7dbbdcb29c91b6099569e180bd8267c7.tar.gz puppet-98e79f8b7dbbdcb29c91b6099569e180bd8267c7.tar.xz puppet-98e79f8b7dbbdcb29c91b6099569e180bd8267c7.zip | |
Fixed #1472 -- defined, exported resources in the current compile now get expanded
correctly.
This was working for defined resources in the db, but not in the current compile.
I just had to mark the resources as non-exported.
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/collector.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/parser/collector.rb b/spec/unit/parser/collector.rb index 2dfae6786..ede583b96 100755 --- a/spec/unit/parser/collector.rb +++ b/spec/unit/parser/collector.rb @@ -234,16 +234,16 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do @collector.evaluate end - it "should return all matching resources from the current compile" do + it "should return all matching resources from the current compile and mark them non-virtual and non-exported" do stub_rails(true) one = stub 'one', :type => "Mytype", :virtual? => true, :exported? => true two = stub 'two', :type => "Mytype", :virtual? => true, :exported? => true - one.stubs(:exported=) - one.stubs(:virtual=) - two.stubs(:exported=) - two.stubs(:virtual=) + one.expects(:exported=).with(false) + one.expects(:virtual=).with(false) + two.expects(:exported=).with(false) + two.expects(:virtual=).with(false) @compiler.expects(:resources).returns([one, two]) |
