Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 6bf1a308 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

rspec: Beispiel mit motd_spec.rb umgesetzt

parent 2cdb097f
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ require 'spec_helper' ...@@ -3,6 +3,9 @@ require 'spec_helper'
describe "ubuntu_server::motd" do describe "ubuntu_server::motd" do
it do it do
is_expected.to contain_file('/etc/update-motd.d/90-puppet-info').with('ensure'=>'present') is_expected.to contain_file('/etc/update-motd.d/90-puppet-info').with('ensure'=>'present')
is_expected.to contain_file('/etc/update-motd.d/10-help-text').with('ensure'=>'absent') $absent_files = ['/etc/update-motd.d/10-help-text','/etc/update-motd.d/90-updates-available','/etc/update-motd.d/91-release-upgrade']
for $file in $absent_files
is_expected.to contain_file($file).with('ensure'=>'absent')
end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment