module-postgresql/spec/unit/classes/globals_spec.rb

31 lines
703 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'postgresql::globals', :type => :class do
let :facts do
{
2014-02-26 02:18:35 +01:00
:osfamily => 'Debian',
:operatingsystem => 'Debian',
:operatingsystemrelease => '6.0',
2014-02-26 02:18:35 +01:00
:lsbdistid => 'Debian',
2014-04-08 16:40:49 +02:00
:lsbdistcodename => 'squeeze',
}
end
describe 'with no parameters' do
it 'should work' do
is_expected.to contain_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
is_expected.to contain_class("postgresql::repo")
end
end
end