1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'abs function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
6 it 'should accept a string' do
13 apply_manifest(pp, :catch_failures => true) do |r|
14 expect(r.stdout).to match(/Notice: 34.56/)
18 it 'should accept a float' do
25 apply_manifest(pp, :catch_failures => true) do |r|
26 expect(r.stdout).to match(/Notice: 34.56/)