1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'is_integer function' do
6 it 'is_integers arrays' do
8 $a = ['aaa.com','bbb','ccc']
12 notify { 'output correct': }
16 apply_manifest(pp, :catch_failures => true) do |r|
17 expect(r.stdout).to match(/Notice: output correct/)
20 it 'is_integers true' do
26 notify { 'output correct': }
30 apply_manifest(pp, :catch_failures => true) do |r|
31 expect(r.stdout).to match(/Notice: output correct/)
34 it 'is_integers strings' do
40 notify { 'output correct': }
44 apply_manifest(pp, :catch_failures => true) do |r|
45 expect(r.stdout).to match(/Notice: output correct/)
48 it 'is_integers floats' do
54 notify { 'output correct': }
58 apply_manifest(pp, :catch_failures => true) do |r|
59 expect(r.stdout).to match(/Notice: output correct/)
62 it 'is_integers integers' do
68 notify { 'output correct': }
72 apply_manifest(pp, :catch_failures => true) do |r|
73 expect(r.stdout).to match(/Notice: output correct/)
76 it 'is_integers hashes' do
78 $a = {'aaa'=>'www.com'}
82 notify { 'output correct': }
86 apply_manifest(pp, :catch_failures => true) do |r|
87 expect(r.stdout).to match(/Notice: output correct/)
92 it 'handles improper argument counts'
93 it 'handles non-arrays'