X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fpostgresql%2Fspec%2Funit%2Fclasses%2Flib%2Fperl_spec.rb;fp=3rdparty%2Fmodules%2Fpostgresql%2Fspec%2Funit%2Fclasses%2Flib%2Fperl_spec.rb;h=922cfa0b857e1298f85f14e64f22599d899c1d51;hb=a69999e580f8b3abd12446c2d6ad59e517651813;hp=0000000000000000000000000000000000000000;hpb=e7b6b352165009c385c52fcfe5a1055690dbfa4b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/postgresql/spec/unit/classes/lib/perl_spec.rb b/3rdparty/modules/postgresql/spec/unit/classes/lib/perl_spec.rb new file mode 100644 index 000000000..922cfa0b8 --- /dev/null +++ b/3rdparty/modules/postgresql/spec/unit/classes/lib/perl_spec.rb @@ -0,0 +1,31 @@ +require 'spec_helper' + +describe 'postgresql::lib::perl', :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('perl-DBD-Pg').with( + :name => 'perl-DBD-Pg', + :ensure => 'present' + )} + end + + describe 'on a debian based os' do + let :facts do { + :osfamily => 'Debian', + :operatingsystem => 'Debian', + :operatingsystemrelease => '6.0', + } + end + it { is_expected.to contain_package('perl-DBD-Pg').with( + :name => 'libdbd-pg-perl', + :ensure => 'present' + )} + end + +end