Project

General

Profile

Download (488 Bytes) Statistics
| Branch: | Tag: | Revision:
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
(5-5/5)