newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / spec / unit / classes / lib / perl_spec.rb
1 require 'spec_helper'
2
3 describe 'postgresql::lib::perl', :type => :class do
4
5   describe 'on a redhat based os' do
6     let :facts do {
7       :osfamily => 'RedHat',
8       :operatingsystem => 'RedHat',
9       :operatingsystemrelease => '6.4',
10     }
11     end
12     it { is_expected.to contain_package('perl-DBD-Pg').with(
13       :name => 'perl-DBD-Pg',
14       :ensure => 'present'
15     )}
16   end
17
18   describe 'on a debian based os' do
19     let :facts do {
20       :osfamily => 'Debian',
21       :operatingsystem => 'Debian',
22       :operatingsystemrelease => '6.0',
23     }
24     end
25     it { is_expected.to contain_package('perl-DBD-Pg').with(
26       :name => 'libdbd-pg-perl',
27       :ensure => 'present'
28     )}
29   end
30
31 end