Commit aab95284 authored by Jose Luis Salas's avatar Jose Luis Salas
Browse files

make ChefSpec work again

parent 60d4adcc
......@@ -9,7 +9,7 @@ end
group :unit do
gem 'berkshelf', '~> 3.2.0'
gem 'chefspec', '~> 3.1'
gem 'chefspec', '~> 4.0'
end
group :kitchen_common do
......
......@@ -20,9 +20,9 @@ end
desc 'Run all style checks'
task style: ['style:chef', 'style:ruby']
# # Rspec and ChefSpec
# desc "Run ChefSpec examples"
# RSpec::Core::RakeTask.new(:spec)
# Rspec and ChefSpec
desc 'Run ChefSpec examples'
RSpec::Core::RakeTask.new(:spec)
# Integration tests. Kitchen.ci
namespace :integration do
......@@ -53,9 +53,7 @@ namespace :integration do
end
desc 'Run all tests on Travis'
# task travis: ['style', 'spec', 'integration:cloud']
task travis: ['style', 'integration:cloud']
task travis: ['style', 'spec', 'integration:cloud']
# Default
# task default: ['style', 'spec', 'integration:vagrant']
task default: ['style', 'integration:vagrant']
task default: ['style', 'spec', 'integration:vagrant']
......@@ -116,8 +116,8 @@ describe 'rsyslog::default' do
end
it 'is owned by root:root' do
expect(directory.owner).to eq('root')
expect(directory.group).to eq('root')
expect(directory.owner).to eq('syslog')
expect(directory.group).to eq('adm')
end
it 'has 0700 permissions' do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment