From 355e766457c8546f234758c0fa55e3f2c8f32b03 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Wed, 22 Apr 2015 15:34:53 +0200 Subject: init: Turn size into a single value. The `size` hash could only ever have the `max` key so it makes more sense to have this as a plain value. This also upgrades the dependency on stdlib to 4.6.0 since we're using the new `validate_integer` function. --- spec/classes/unattended_upgrades_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index bdacc2d..28feaa7 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -111,7 +111,7 @@ describe 'unattended_upgrades' do let :params do { :age => { 'min' => 1, 'max' => 20 }, - :size => { 'max' => 1000 }, + :size => 1000, :update => 5, :upgradeable_packages => { 'download_only' => 5, @@ -334,7 +334,7 @@ describe 'unattended_upgrades' do it do expect { subject.call - }.to raise_error(Puppet::Error, /not a Hash/) + }.to raise_error(Puppet::Error, /to be an Integer/) end end context 'bad upgradeable_packages' do -- cgit v1.2.3