3 describe 'postgresql::python', :type => :class do
5 describe 'on a redhat based os' do
8 :postgres_default_version => 'foo',
11 it { should contain_package('python-psycopg2').with(
12 :name => 'python-psycopg2',
17 describe 'on a debian based os' do
19 :osfamily => 'Debian',
20 :postgres_default_version => 'foo',
23 it { should contain_package('python-psycopg2').with(
24 :name => 'python-psycopg2',
29 describe 'on any other os' do
32 :postgres_default_version => 'foo',
36 it 'should fail without all the necessary parameters' do
37 expect { subject }.to raise_error(/Module postgresql does not provide defaults for osfamily: foo/)
41 describe 'on any other os without all the necessary parameters' do
44 :postgres_default_version => 'foo',
49 expect { subject }.to raise_error(/Module postgresql does not provide defaults for osfamily: foo/)