Got 100% test coverage for common

This is my first pass at getting 100% unit test coverage.

Updated the tests to be rspec3 compaable also.
falsey? really FALSEY?

Updated chef to 11.12.0

Change-Id: I667f631d9c98474f7fe730315626702bae38f573
This commit is contained in:
JJ Asghar
2014-07-11 16:23:38 -05:00
parent b6395b3a43
commit 126d986884
5 changed files with 35 additions and 8 deletions

View File

@@ -27,6 +27,10 @@ describe 'openstack-common::logging' do
describe 'logging.conf' do
let(:file) { chef_run.template('/etc/openstack/logging.conf') }
it 'should create /etc/openstack/logging.conf' do
expect(chef_run).to create_template(file.name)
end
it 'has proper owner' do
expect(file.owner).to eq('root')
expect(file.group).to eq('root')