Skip to content

Instantly share code, notes, and snippets.

@vialde
Created November 20, 2014 10:43
Show Gist options
  • Save vialde/e0549e838ec47a0be299 to your computer and use it in GitHub Desktop.
Save vialde/e0549e838ec47a0be299 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe 'profile::banners' do
let(:title) {banners}
let(:facts) {{
:kernel => 'Linux',
:osfamily => 'RedHat'
}}
it { should compile.with_all_deps }
it { should have_class_count(1) }
it do
it { should contain_file('/etc/motd') }.with({
'ensure' => 'present',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
})
end
it do
it { should contain_file('/etc/issue') }.with({
'ensure' => 'present',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
})
end
it do
it { should contain_file('/etc/issue.net') }.with({
'ensure' => 'present',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
})
end
it { should contain_class("Profile::Banners") }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment