2013-08-27 22:43:47 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'postgresql::globals', :type => :class do
|
|
|
|
let :facts do
|
|
|
|
{
|
|
|
|
:osfamily => 'Debian',
|
|
|
|
:operatingsystem => 'Debian',
|
|
|
|
:operatingsystemrelease => '6.0',
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'with no parameters' do
|
|
|
|
it 'should work' do
|
2014-01-07 23:16:09 +01:00
|
|
|
should contain_class("postgresql::globals")
|
2013-08-27 22:43:47 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'manage_package_repo => true' do
|
|
|
|
let(:params) do
|
|
|
|
{
|
|
|
|
:manage_package_repo => true,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
it 'should pull in class postgresql::repo' do
|
2014-01-07 23:16:09 +01:00
|
|
|
should contain_class("postgresql::repo")
|
2013-08-27 22:43:47 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|