Project

General

Profile

« Previous | Next » 

Revision d03a4a1e

Added by Ewoud Kohl van Wijngaarden about 9 years ago

Partial puppet-lint fixes

View differences:

spec/classes/foreman_config_spec.rb
with_content(/^FOREMAN_USER=foreman$/).
with_content(/^FOREMAN_ENV=production/).
with_content(/^FOREMAN_USE_PASSENGER=1$/).
with_ensure('present')
with_ensure('file')
end
it { should contain_file('/usr/share/foreman').with_ensure('directory') }
......
it 'should contain foreman::config::passenger' do
should contain_class('foreman::config::passenger').
with_listen_on_interface('').
with_listen_on_interface(nil).
with_ruby('/usr/bin/ruby193-ruby').
that_comes_before('Anchor[foreman::config_end]')
end
......
with_content(/^FOREMAN_HOME=\/usr\/share\/foreman$/).
with_content(/^FOREMAN_USER=foreman$/).
with_content(/^FOREMAN_ENV=production/).
with_ensure('present')
with_ensure('file')
end
it { should contain_file('/usr/share/foreman').with_ensure('directory') }
......
end
it { should contain_class('foreman::config::passenger').with({
:listen_on_interface => '',
:listen_on_interface => nil,
:ruby => nil,
})}
end

Also available in: Unified diff