29 lines
579 B
Ruby
29 lines
579 B
Ruby
|
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
|
||
|
should include_class("postgresql::globals")
|
||
|
end
|
||
|
end
|
||
|
|
||
|
describe 'manage_package_repo => true' do
|
||
|
let(:params) do
|
||
|
{
|
||
|
:manage_package_repo => true,
|
||
|
}
|
||
|
end
|
||
|
it 'should pull in class postgresql::repo' do
|
||
|
should include_class("postgresql::repo")
|
||
|
end
|
||
|
end
|
||
|
end
|