X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fcount_spec.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fcount_spec.rb;h=0000000000000000000000000000000000000000;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hp=c134836e3a39d8209d68c77fa127bb86edf9006a;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/count_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/count_spec.rb deleted file mode 100644 index c134836e3..000000000 --- a/3rdparty/modules/stdlib/spec/acceptance/count_spec.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'spec_helper_acceptance' - -describe 'count function' do - describe 'success' do - pp1 = <<-DOC - $input = [1,2,3,4] - $output = count($input) - notify { "$output": } - DOC - it 'counts elements in an array' do - apply_manifest(pp1, :catch_failures => true) do |r| - expect(r.stdout).to match(%r{Notice: 4}) - end - end - - pp2 = <<-DOC - $input = [1,1,1,2] - $output = count($input, 1) - notify { "$output": } - DOC - it 'counts elements in an array that match a second argument' do - apply_manifest(pp2, :catch_failures => true) do |r| - expect(r.stdout).to match(%r{Notice: 3}) - end - end - end -end