Add systemd module, required by rabbitmq
[mirror/dsa-puppet.git] / 3rdparty / modules / systemd / spec / defines / tmpfile_spec.rb
1 require 'spec_helper'
2
3 describe 'systemd::tmpfile' do
4   context 'supported operating systems' do
5     on_supported_os.each do |os, facts|
6       context "on #{os}" do
7         let(:facts) { facts }
8
9         let(:title) { 'random_tmpfile' }
10
11         let(:params) {{
12           :content => 'random stuff'
13         }}
14
15         it { is_expected.to compile.with_all_deps }
16         it { is_expected.to create_file("/etc/tmpfiles.d/#{title}").with(
17           :ensure  => 'file',
18           :content => /#{params[:content]}/,
19           :mode    => '0444'
20         ) }
21       end
22     end
23   end
24 end