test changing port

This commit is contained in:
Tomas Barton 2014-01-26 11:59:34 +01:00
parent 5ce0dcda97
commit c1588ff6c3

View file

@ -2,7 +2,6 @@ require 'spec_helper'
describe 'sshd' do
shared_examples "a Linux OS" do
it { should compile.with_all_deps }
it { should contain_class('sshd') }
@ -22,6 +21,15 @@ describe 'sshd' do
'mode' => '0600',
}
)}
context 'change ssh port' do
let(:params){{
:ports => [ 22222],
}}
it { should contain_file(
'sshd_config'
).with_content(/Port 22222/)}
end
end
context "Debian OS" do