095c2e15a1138d99833c61a368ccd796b24d6c3e
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / spec / unit / classes / lib / python_spec.rb
1 require 'spec_helper'
2
3 describe 'postgresql::lib::python', :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('python-psycopg2').with(
13       :name => 'python-psycopg2',
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('python-psycopg2').with(
26       :name => 'python-psycopg2',
27       :ensure => 'present'
28     )}
29   end
30
31 end