diff options
-rw-r--r-- | lib/puppet/parser/collector.rb | 1 | ||||
-rwxr-xr-x | spec/unit/parser/collector.rb | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/lib/puppet/parser/collector.rb b/lib/puppet/parser/collector.rb index 9dd07f31a..63eb87896 100644 --- a/lib/puppet/parser/collector.rb +++ b/lib/puppet/parser/collector.rb @@ -16,7 +16,6 @@ class Puppet::Parser::Collector method = "collect_#{@form.to_s}" objects = send(method).each do |obj| obj.virtual = false - obj.exported = false if form == :exported end if objects.empty? return false diff --git a/spec/unit/parser/collector.rb b/spec/unit/parser/collector.rb index c0e5f2298..450176f30 100755 --- a/spec/unit/parser/collector.rb +++ b/spec/unit/parser/collector.rb @@ -243,19 +243,6 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do @collector.evaluate.should == [one, two] end - it "should mark all returned resources as not exported" do - stub_rails(true) - - one = stub 'one', :type => "Mytype", :virtual? => true, :exported? => true - - one.expects(:exported=).with(false) - one.stubs(:virtual=) - - @compile.expects(:resources).returns([one]) - - @collector.evaluate.should == [one] - end - it "should mark all returned resources as not virtual" do stub_rails(true) |