module-sshd/spec/classes/init_spec.rb
2014-01-26 18:26:34 +01:00

24 lines
No EOL
486 B
Ruby

require 'spec_helper'
describe 'sshd' do
shared_examples "a Linux OS" do
it { should compile.with_all_deps }
it { should contain_class('sshd') }
it { should contain_class('sshd::client') }
end
context "Debian OS" do
let :facts do
{
:operatingsystem => 'Debian',
:osfamily => 'Debian',
:lsbdistcodename => 'wheezy',
}
end
it_behaves_like "a Linux OS"
it { should contain_package('lsb-release') }
end
end