summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/collector_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/collector_spec.rb')
-rwxr-xr-xspec/unit/parser/collector_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/parser/collector_spec.rb b/spec/unit/parser/collector_spec.rb
index de5fc8015..c414207fa 100755
--- a/spec/unit/parser/collector_spec.rb
+++ b/spec/unit/parser/collector_spec.rb
@@ -337,7 +337,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do
end
it "should convert all found resources into parser resources" do
- stub_rails()
+ stub_rails
Puppet::Rails::Host.stubs(:find_by_name).returns(nil)
one = stub 'one', :restype => "Mytype", :title => "one", :virtual? => true, :exported? => true, :ref => "one"
@@ -358,7 +358,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do
end
it "should override all exported collected resources if collector has an override" do
- stub_rails()
+ stub_rails
Puppet::Rails::Host.stubs(:find_by_name).returns(nil)
one = stub 'one', :restype => "Mytype", :title => "one", :virtual? => true, :exported? => true, :ref => "one"
@@ -387,7 +387,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do
end
it "should store converted resources in the compile's resource list" do
- stub_rails()
+ stub_rails
Puppet::Rails::Host.stubs(:find_by_name).returns(nil)
one = stub 'one', :restype => "Mytype", :title => "one", :virtual? => true, :exported? => true, :ref => "one"
@@ -409,7 +409,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do
# This way one host doesn't store another host's resources as exported.
it "should mark resources collected from the database as not exported" do
- stub_rails()
+ stub_rails
Puppet::Rails::Host.stubs(:find_by_name).returns(nil)
one = stub 'one', :restype => "Mytype", :title => "one", :virtual? => true, :exported? => true, :ref => "one"
@@ -430,7 +430,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do
end
it "should fail if an equivalent resource already exists in the compile" do
- stub_rails()
+ stub_rails
Puppet::Rails::Host.stubs(:find_by_name).returns(nil)
rails = stub 'one', :restype => "Mytype", :title => "one", :virtual? => true, :exported? => true, :id => 1, :ref => "yay"
@@ -449,7 +449,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do
end
it "should ignore exported resources that match already-collected resources" do
- stub_rails()
+ stub_rails
Puppet::Rails::Host.stubs(:find_by_name).returns(nil)
rails = stub 'one', :restype => "Mytype", :title => "one", :virtual? => true, :exported? => true, :id => 1, :ref => "yay"