X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fis_array_spec.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fis_array_spec.rb;h=0000000000000000000000000000000000000000;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hp=408ff1ece7735bc9b508be89c94f4f2f0823cbc9;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/is_array_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/is_array_spec.rb deleted file mode 100644 index 408ff1ece..000000000 --- a/3rdparty/modules/stdlib/spec/acceptance/is_array_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -require 'spec_helper_acceptance' - -describe 'is_array function' do - describe 'success' do - pp1 = <<-DOC - $a = ['aaa','bbb','ccc'] - $b = true - $o = is_array($a) - if $o == $b { - notify { 'output correct': } - } - DOC - it 'is_arrays arrays' do - apply_manifest(pp1, :catch_failures => true) do |r| - expect(r.stdout).to match(%r{Notice: output correct}) - end - end - - pp2 = <<-DOC - $a = [] - $b = true - $o = is_array($a) - if $o == $b { - notify { 'output correct': } - } - DOC - it 'is_arrays empty arrays' do - apply_manifest(pp2, :catch_failures => true) do |r| - expect(r.stdout).to match(%r{Notice: output correct}) - end - end - - pp3 = <<-DOC - $a = "aoeu" - $b = false - $o = is_array($a) - if $o == $b { - notify { 'output correct': } - } - DOC - it 'is_arrays strings' do - apply_manifest(pp3, :catch_failures => true) do |r| - expect(r.stdout).to match(%r{Notice: output correct}) - end - end - - pp4 = <<-DOC - $a = {'aaa'=>'bbb'} - $b = false - $o = is_array($a) - if $o == $b { - notify { 'output correct': } - } - DOC - it 'is_arrays hashes' do - apply_manifest(pp4, :catch_failures => true) do |r| - expect(r.stdout).to match(%r{Notice: output correct}) - end - end - end - describe 'failure' do - it 'handles improper argument counts' - it 'handles non-arrays' - end -end