Mercurial > repos > other > Puppet
comparison modules/stdlib/spec/functions/dig_spec.rb @ 272:c42fb28cff86
Update to a newer Python module
This also pulls in an EPEL module (which we don't use) and a newer
stdlib version.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 03 Jan 2020 19:56:04 +0000 |
parents | |
children | d9352a684e62 |
comparison
equal
deleted
inserted
replaced
271:c62728474654 | 272:c42fb28cff86 |
---|---|
1 require 'spec_helper' | |
2 | |
3 describe 'dig' do | |
4 it 'exists' do | |
5 expect(Puppet::Parser::Functions.function('dig')).to eq('function_dig') | |
6 end | |
7 | |
8 it 'gives a deprecation warning when called' do | |
9 scope.expects(:warning).with('dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.') | |
10 scope.function_dig([{}, []]) | |
11 end | |
12 end |