Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / chomp_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'chomp function', :if => Puppet::Util::Package.versioncmp(return_puppet_version, '6.0.0') < 0 do
4   describe 'success' do
5     pp = <<-DOC
6       $input = "test\n"
7       if size($input) != 5 {
8         fail("Size of ${input} is not 5.")
9       }
10       $output = chomp($input)
11       if size($output) != 4 {
12         fail("Size of ${input} is not 4.")
13       }
14     DOC
15     it 'eats the newline' do
16       apply_manifest(pp, :catch_failures => true)
17     end
18   end
19 end