X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fpostgresql%2Fspec%2Funit%2Fclasses%2Fpostgresql_python_spec.rb;fp=3rdparty%2Fmodules%2Fpostgresql%2Fspec%2Funit%2Fclasses%2Fpostgresql_python_spec.rb;h=0000000000000000000000000000000000000000;hb=a69999e580f8b3abd12446c2d6ad59e517651813;hp=f606d249cbf11daafa208601c054314dcda6be93;hpb=e7b6b352165009c385c52fcfe5a1055690dbfa4b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/postgresql/spec/unit/classes/postgresql_python_spec.rb b/3rdparty/modules/postgresql/spec/unit/classes/postgresql_python_spec.rb deleted file mode 100644 index f606d249c..000000000 --- a/3rdparty/modules/postgresql/spec/unit/classes/postgresql_python_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -require 'spec_helper' - -describe 'postgresql::python', :type => :class do - - describe 'on a redhat based os' do - let :facts do { - :osfamily => 'RedHat', - :postgres_default_version => 'foo', - } - end - it { should contain_package('python-psycopg2').with( - :name => 'python-psycopg2', - :ensure => 'present' - )} - end - - describe 'on a debian based os' do - let :facts do { - :osfamily => 'Debian', - :postgres_default_version => 'foo', - } - end - it { should contain_package('python-psycopg2').with( - :name => 'python-psycopg2', - :ensure => 'present' - )} - end - - describe 'on any other os' do - let :facts do { - :osfamily => 'foo', - :postgres_default_version => 'foo', - } - end - - it 'should fail without all the necessary parameters' do - expect { subject }.to raise_error(/Module postgresql does not provide defaults for osfamily: foo/) - end - end - - describe 'on any other os without all the necessary parameters' do - let :facts do { - :osfamily => 'foo', - :postgres_default_version => 'foo', - } - end - - it 'should fail' do - expect { subject }.to raise_error(/Module postgresql does not provide defaults for osfamily: foo/) - end - end - -end