Commit 5a29de00 authored by Tim Smith's avatar Tim Smith
Browse files

Update rubocop rules and resolve warnings

parent cfc7ec4c
......@@ -15,17 +15,19 @@ Encoding:
Enabled: false
Style/FileName:
Enabled: false
Style/Alias:
Enabled: false
Style/SpaceBeforeFirstArg:
Enabled: false
LineLength:
Enabled: false
MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
PerceivedComplexity:
Metrics/ModuleLength:
Enabled: false
SingleSpaceBeforeFirstArg:
PerceivedComplexity:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/FileName:
Enabled: false
......@@ -39,7 +39,7 @@ when 'debian'
when 'rhel'
if node['platform_version'].to_i <= 5
Chef::Log.fatal('Erlang Solutions pacakge repositories are not available for EL5')
fail
raise
end
include_recipe 'yum-erlang_solutions'
......
......@@ -4,7 +4,7 @@ describe 'erlang::esl' do
describe 'Debian Platform Family' do
cached(:chef_run_debian) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '14.04')
.converge('erlang::esl')
.converge('erlang::esl')
end
it 'converges successfully' do
......@@ -27,7 +27,7 @@ describe 'erlang::esl' do
describe 'RHEL Platform Family' do
cached(:chef_run_rhel) do
ChefSpec::ServerRunner.new(platform: 'centos', version: '7.0')
.converge('erlang::esl')
.converge('erlang::esl')
end
it 'converges successfully' do
......
......@@ -40,7 +40,7 @@ describe 'erlang::package' do
describe 'RHEL Platform Family' do
cached(:chef_run_rhel) do
ChefSpec::ServerRunner.new(platform: 'centos', version: '7.0')
.converge('erlang::package')
.converge('erlang::package')
end
it 'converges successfully' do
......@@ -59,7 +59,7 @@ describe 'erlang::package' do
context 'RHEL 5' do
cached(:chef_run_rhel_5) do
ChefSpec::ServerRunner.new(platform: 'centos', version: '5.10')
.converge('erlang::package')
.converge('erlang::package')
end
it 'creates the yum EPELErlangrepo repository' do
......
......@@ -34,7 +34,7 @@ describe 'erlang::source' do
describe 'Debian Platform Family' do
cached(:chef_run_debian) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '14.04')
.converge('erlang::source')
.converge('erlang::source')
end
%w(libncurses5-dev openssl libssl-dev).each do |pkg|
......@@ -47,7 +47,7 @@ describe 'erlang::source' do
describe 'RHEL Platform Family' do
cached(:chef_run_rhel) do
ChefSpec::ServerRunner.new(platform: 'centos', version: '7.0')
.converge('erlang::source')
.converge('erlang::source')
end
%w(ncurses-devel openssl-devel).each do |pkg|
......
Markdown is supported
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