1 require 'spec_helper_acceptance'
3 describe 'abs function', :if => Puppet::Util::Package.versioncmp(return_puppet_version, '6.0.0') < 0 do
10 it 'accepts a string' do
11 apply_manifest(pp1, :catch_failures => true) do |r|
12 expect(r.stdout).to match(%r{Notice: 34.56})
21 it 'accepts a float' do
22 apply_manifest(pp2, :catch_failures => true) do |r|
23 expect(r.stdout).to match(%r{Notice: 35.46})