1 require 'spec_helper_acceptance'
3 describe 'is_integer function' do
6 $a = ['aaa.com','bbb','ccc']
10 notify { 'output correct': }
13 it 'is_integers arrays' do
14 apply_manifest(pp1, :catch_failures => true) do |r|
15 expect(r.stdout).to match(%r{Notice: output correct})
24 notify { 'output correct': }
27 it 'is_integers true' do
28 apply_manifest(pp2, :catch_failures => true) do |r|
29 expect(r.stdout).to match(%r{Notice: output correct})
38 notify { 'output correct': }
41 it 'is_integers strings' do
42 apply_manifest(pp3, :catch_failures => true) do |r|
43 expect(r.stdout).to match(%r{Notice: output correct})
52 notify { 'output correct': }
55 it 'is_integers floats' do
56 apply_manifest(pp4, :catch_failures => true) do |r|
57 expect(r.stdout).to match(%r{Notice: output correct})
66 notify { 'output correct': }
69 it 'is_integers integers' do
70 apply_manifest(pp5, :catch_failures => true) do |r|
71 expect(r.stdout).to match(%r{Notice: output correct})
76 $a = {'aaa'=>'www.com'}
80 notify { 'output correct': }
83 it 'is_integers hashes' do
84 apply_manifest(pp6, :catch_failures => true) do |r|
85 expect(r.stdout).to match(%r{Notice: output correct})
90 it 'handles improper argument counts'
91 it 'handles non-arrays'