module-postgresql/spec/unit/defines/server/database_grant_spec.rb

27 lines
509 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'postgresql::server::database_grant', :type => :define do
let :facts do
{
:osfamily => 'Debian',
:operatingsystem => 'Debian',
:operatingsystemrelease => '6.0',
}
end
let :title do
'test'
end
let :params do
{
:privilege => 'ALL',
:db => 'test',
:role => 'test',
}
end
it { should contain_postgresql__server__database_grant('test') }
it { should contain_postgresql__server__grant('database:test') }
end