X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Ftype3x_spec.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Ftype3x_spec.rb;h=0000000000000000000000000000000000000000;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hp=4b755488cd1ee1f8bc3e3d6dac3b7802305e3d81;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/type3x_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/type3x_spec.rb deleted file mode 100644 index 4b755488c..000000000 --- a/3rdparty/modules/stdlib/spec/acceptance/type3x_spec.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'spec_helper_acceptance' - -describe 'type3x function' do - describe 'success' do - { - %{type3x({ 'a' => 'hash' })} => 'Hash', - %{type3x(['array'])} => 'Array', - %{type3x(false)} => 'Boolean', - %{type3x('asdf')} => 'String', - %{type3x(242)} => 'Integer', - %{type3x(3.14)} => 'Float', - }.each do |pp, type| - it "with type #{type}" do - apply_manifest(pp, :catch_failures => true) - end - end - end - - describe 'failure' do - pp_fail = <<-MANIFEST - type3x('one','two') - MANIFEST - it 'handles improper number of arguments' do - expect(apply_manifest(pp_fail, :expect_failures => true).stderr).to match(%r{Wrong number of arguments}) - end - end -end