summaryrefslogtreecommitdiffstats
path: root/test/language/parser.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-29 11:55:00 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-29 12:08:19 -0800
commit14f8160674628340ccfd79baeb84f66cf1e0398a (patch)
tree8acca5047c3e810535786b14c967e51c0623485f /test/language/parser.rb
parent52f9ef06507d87026936dc90dcb467a728ebd54f (diff)
Maint: Refactor tests to use <class>.indirection.<method>
Replaced uses of the find, search, destroy, and expire methods on model classes with direct calls to the indirection objects. This change affects tests only.
Diffstat (limited to 'test/language/parser.rb')
-rwxr-xr-xtest/language/parser.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb
index 6f3d751c2..93d4ae693 100755
--- a/test/language/parser.rb
+++ b/test/language/parser.rb
@@ -500,9 +500,9 @@ file { "/tmp/yayness":
ensure
if Puppet.features.rails?
Puppet[:storeconfigs] = false
- Puppet::Resource::Catalog.cache_class = catalog_cache_class
- Puppet::Node::Facts.cache_class = facts_cache_class
- Puppet::Node.cache_class = node_cache_class
+ Puppet::Resource::Catalog.indirection.cache_class = catalog_cache_class
+ Puppet::Node::Facts.indirection.cache_class = facts_cache_class
+ Puppet::Node.indirection.cache_class = node_cache_class
end
end
@@ -539,9 +539,9 @@ file { "/tmp/yayness":
ensure
if Puppet.features.rails?
Puppet[:storeconfigs] = false
- Puppet::Resource::Catalog.cache_class = catalog_cache_class
- Puppet::Node::Facts.cache_class = facts_cache_class
- Puppet::Node.cache_class = node_cache_class
+ Puppet::Resource::Catalog.indirection.cache_class = catalog_cache_class
+ Puppet::Node::Facts.indirection.cache_class = facts_cache_class
+ Puppet::Node.indirection.cache_class = node_cache_class
end
end