X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fis_ip_address_spec.rb;h=86f3cf8920d38915d1544ca3ec03ef3063c284bf;hp=daa09dbe247f2c09007dda900bf7710eb58b40cc;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/spec/functions/is_ip_address_spec.rb b/3rdparty/modules/stdlib/spec/functions/is_ip_address_spec.rb index daa09dbe2..86f3cf892 100644 --- a/3rdparty/modules/stdlib/spec/functions/is_ip_address_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/is_ip_address_spec.rb @@ -20,21 +20,5 @@ describe 'is_ip_address' do it { is_expected.to run.with_params(1).and_return(false) } it { is_expected.to run.with_params({}).and_return(false) } it { is_expected.to run.with_params([]).and_return(false) } - - context 'Checking for deprecation warning', :if => Puppet.version.to_f < 4.0 do - # Checking for deprecation warning, which should only be provoked when the env variable for it is set. - it 'displays a single deprecation' do - ENV['STDLIB_LOG_DEPRECATIONS'] = 'true' - expect(scope).to receive(:warning).with(include('This method is deprecated')) - is_expected.to run.with_params('1.2.3.4').and_return(true) - end - it 'displays no warning for deprecation' do - ENV['STDLIB_LOG_DEPRECATIONS'] = 'false' - expect(scope).to receive(:warning).with(include('This method is deprecated')).never - is_expected.to run.with_params('1.2.3.4').and_return(true) - end - after(:each) do - ENV.delete('STDLIB_LOG_DEPRECATIONS') - end - end + it { is_expected.to run.with_params('thisstring').and_return(false) } end