Revision b7d1b2ba
Added by Dominic Cleal about 10 years ago
test/puppet_environment_test.rb | ||
---|---|---|
def test_uses_puppet_config
|
||
config_reader = mock('config')
|
||
config_reader.expects(:get).returns({:main => {}, :master => {}})
|
||
Proxy::Puppet::Initializer.expects(:load)
|
||
Proxy::Puppet::Initializer.expects(:config).returns('/foo/puppet.conf').at_least_once
|
||
Proxy::Puppet::ConfigReader.expects(:new).with('/foo/puppet.conf').returns(config_reader)
|
||
File.expects(:exist?).with('/foo/puppet.conf').returns(true).at_least_once
|
||
Proxy::Puppet::Environment.send(:puppet_environments)
|
||
end
|
||
|
Also available in: Unified diff
fixes #5239 - update for Puppet 3.5 future parser changes