f9c0d91680
See the README for usage and provided parameters.
29 lines
753 B
Ruby
29 lines
753 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'postgresql::lib::docs', :type => :class do
|
|
|
|
describe 'on a redhat based os' do
|
|
let :facts do {
|
|
:osfamily => 'RedHat',
|
|
:operatingsystem => 'RedHat',
|
|
:operatingsystemrelease => '6.4',
|
|
}
|
|
end
|
|
it { is_expected.to contain_package('postgresql-docs').with(
|
|
:name => 'postgresql-docs',
|
|
:ensure => 'present',
|
|
:tag => 'postgresql'
|
|
)}
|
|
describe 'when parameters are supplied' do
|
|
let :params do
|
|
{:package_ensure => 'latest', :package_name => 'somepackage'}
|
|
end
|
|
it { is_expected.to contain_package('postgresql-docs').with(
|
|
:name => 'somepackage',
|
|
:ensure => 'latest',
|
|
:tag => 'postgresql'
|
|
)}
|
|
end
|
|
end
|
|
|
|
end
|