diff options
author | Daniele Sluijters <daenney@users.noreply.github.com> | 2015-04-22 15:34:53 +0200 |
---|---|---|
committer | Daniele Sluijters <daenney@users.noreply.github.com> | 2015-04-22 15:34:53 +0200 |
commit | 355e766457c8546f234758c0fa55e3f2c8f32b03 (patch) | |
tree | b7dd63d16f9fd58ed070d91741ca7f6269ee3977 /spec | |
parent | b6ca1665241485ce57d5be3131f8b0e987313695 (diff) |
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.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/unattended_upgrades_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |