Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / get_module_path_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'get_module_path function' do
4   describe 'success' do
5     pp = <<-DOC
6       $a = $::is_pe ? {
7         'true'  => '/etc/puppetlabs/puppet/modules/dne',
8         'false' => '/etc/puppet/modules/dne',
9       }
10       $o = get_module_path('dne')
11       if $o == $a {
12         notify { 'output correct': }
13       } else {
14         notify { "failed; module path is '$o'": }
15       }
16     DOC
17     it 'get_module_paths dne' do
18       apply_manifest(pp, :expect_failures => true)
19     end
20   end
21   describe 'failure' do
22     it 'handles improper argument counts'
23     it 'handles non-numbers'
24   end
25 end