Sha256: 5ea585015c3c4b5c52ce05c75b5cb7be0625dfd0541ae7ee30cfb01d68a693ec
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe 'postgresql::server::plperl', :type => :class do let :facts do { :osfamily => 'Debian', :operatingsystem => 'Debian', :operatingsystemrelease => '6.0', :kernel => 'Linux', :concat_basedir => tmpfilename('plperl'), } end let :pre_condition do "class { 'postgresql::server': }" end describe 'with no parameters' do it { should contain_class("postgresql::server::plperl") } it 'should create package' do should contain_package('postgresql-plperl').with({ :ensure => 'present', :tag => 'postgresql', }) end end describe 'with parameters' do let :params do { :package_ensure => 'absent', :package_name => 'mypackage', } end it { should contain_class("postgresql::server::plperl") } it 'should create package with correct params' do should contain_package('postgresql-plperl').with({ :ensure => 'absent', :name => 'mypackage', :tag => 'postgresql', }) end end end
Version data entries
7 entries across 7 versions & 1 rubygems