diff options
author | Helen <helen@puppetlabs.com> | 2016-09-21 16:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 16:22:37 +0100 |
commit | 69c69e750bdaee7d5eec264650551b149538de92 (patch) | |
tree | bce91bd1788e413432f2d3ad3a984132f672283c /spec/acceptance/validate_array_spec.rb | |
parent | e94beb5bd189296ac3dade603c1b45ac7183ec21 (diff) |
Revert "Ensure validate functions use Puppet 4 deprecation"
Diffstat (limited to 'spec/acceptance/validate_array_spec.rb')
-rwxr-xr-x | spec/acceptance/validate_array_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/acceptance/validate_array_spec.rb b/spec/acceptance/validate_array_spec.rb index 2f549d5..b53e98c 100755 --- a/spec/acceptance/validate_array_spec.rb +++ b/spec/acceptance/validate_array_spec.rb @@ -20,14 +20,14 @@ describe 'validate_array function', :unless => UNSUPPORTED_PLATFORMS.include?(fa apply_manifest(pp, :catch_failures => true) end - [ - %{validate_array({'a' => 'hash' })}, - %{validate_array('string')}, - %{validate_array(false)}, - %{validate_array(undef)} - ].each do |pp| - it "rejects #{pp.inspect}" do - expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/is not an Array\. It looks to be a/) + it 'validates a non-array' do + { + %{validate_array({'a' => 'hash' })} => "Hash", + %{validate_array('string')} => "String", + %{validate_array(false)} => "FalseClass", + %{validate_array(undef)} => "String" + }.each do |pp,type| + expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/a #{type}/) end end end |