Project

General

Profile

« Previous | Next » 

Revision 8d3012fe

Added by Dominic Cleal about 10 years ago

fixes #5522 - future parser can be set in puppet.conf [main]

View differences:

test/puppet_class_test.rb
klass = Proxy::Puppet::PuppetClass.new "foreman_proxy::install"
assert_kind_of Proxy::Puppet::PuppetClass, klass
end
def test_scan_directory_loads_scanner
Proxy::Puppet::Initializer.expects(:load)
Proxy::Puppet::ClassScanner.expects(:scan_directory).with('/foo')
Proxy::Puppet::PuppetClass.scan_directory('/foo', nil)
end
def test_scan_directory_loads_eparser_scanner
return unless Puppet::PUPPETVERSION.to_f >= 3.2
Proxy::Puppet::Initializer.expects(:load)
Proxy::Puppet::ClassScannerEParser.expects(:scan_directory).with('/foo')
Proxy::Puppet::PuppetClass.scan_directory('/foo', true)
end
end

Also available in: Unified diff