require 'spec_helper' describe 'postgresql::repo', :type => :class do let :facts do { :osfamily => 'Debian', :operatingsystem => 'Debian', :operatingsystemrelease => '6.0', } end describe 'with no parameters' do it 'should instantiate apt_postgresql_org class' do should include_class('postgresql::repo::apt_postgresql_org') end end end