diff options
author | Helen Campbell <helen@puppetlabs.com> | 2016-08-16 11:55:05 +0100 |
---|---|---|
committer | Helen Campbell <helen@puppetlabs.com> | 2016-08-17 13:49:42 +0100 |
commit | 6d185bdaa19f698270a0df4b0a0c05618864b955 (patch) | |
tree | 2d005f4664838214a4e3284e73a2060453a1216c /spec/functions/validate_ipv4_address_spec.rb | |
parent | 1d9d2c02d6669d4a6219140ae7ff3648a30c89cf (diff) |
Deprecation of ip functions
Diffstat (limited to 'spec/functions/validate_ipv4_address_spec.rb')
-rwxr-xr-x | spec/functions/validate_ipv4_address_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functions/validate_ipv4_address_spec.rb b/spec/functions/validate_ipv4_address_spec.rb index b6170d4..b67bf6f 100755 --- a/spec/functions/validate_ipv4_address_spec.rb +++ b/spec/functions/validate_ipv4_address_spec.rb @@ -5,6 +5,11 @@ describe 'validate_ipv4_address' do it { is_expected.not_to eq(nil) } it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } + it 'should display a single deprecation' do + scope.expects(:warning).with(includes('This method is deprecated')) + is_expected.to run.with_params('1.1.1.1') + end + describe 'valid inputs' do it { is_expected.to run.with_params('0.0.0.0') } it { is_expected.to run.with_params('8.8.8.8') } |