23 lines
488 B
Ruby
23 lines
488 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'mongodb::server' do
|
|
let :facts do
|
|
{
|
|
:osfamily => 'Debian',
|
|
:operatingsystem => 'Debian',
|
|
}
|
|
end
|
|
|
|
context 'with defaults' do
|
|
it { should contain_class('mongodb::server::install') }
|
|
it { should contain_class('mongodb::server::config') }
|
|
end
|
|
|
|
context 'when deploying on Solaris' do
|
|
let :facts do
|
|
{ :osfamily => 'Solaris' }
|
|
end
|
|
it { expect { should raise_error(Puppet::Error) } }
|
|
end
|
|
|
|
end |