Revision 31c338bf
Added by Greg Sutcliffe almost 11 years ago
- ID 31c338bfdb1a835431696e92fa3ea9e57ce908fc
test/puppet_environment_test.rb | ||
---|---|---|
Puppet.settings.stubs(:instance_variable_get).returns(config)
|
||
env = Proxy::Puppet::Environment.all
|
||
assert_array_equal env.map { |e| e.name }, ['dev','prod']
|
||
env_class_map = env.map { |e| [e.name, e.classes.map { |c| c.name }].flatten }
|
||
assert_array_equal env_class_map, [["prod", "test"], ["dev", "test2"]]
|
||
end
|
||
|
||
def test_multiple_modulepath_in_single_env_with_dynamic_path
|
Also available in: Unified diff
Fixes #2659 - Use gsub in a non-destructive manner
(cherry picked from commit 92a8bdeff4503f0160ec2580996415e749ca0c8f)