diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index 2071ebd..472f17b 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -5,10 +5,13 @@ control 'OpenVPN server configuration' do title 'should match desired lines' - cfgfile = case os[:name] - when 'fedora' then '/etc/openvpn/server/myserver1.conf' - else '/etc/openvpn/myserver1.conf' - end + cfgfile = + case os[:name] + when 'fedora' then + '/etc/openvpn/server/myserver1.conf' + else + '/etc/openvpn/myserver1.conf' + end describe file(cfgfile) do it { should be_file } @@ -28,10 +31,13 @@ control 'OpenVPN client configuration' do title 'should match desired lines' - cfgfile = case os[:name] - when 'fedora' then '/etc/openvpn/client/myclient1.conf' - else '/etc/openvpn/myclient1.conf' - end + cfgfile = + case os[:name] + when 'fedora' then + '/etc/openvpn/client/myclient1.conf' + else + '/etc/openvpn/myclient1.conf' + end describe file(cfgfile) do it { should be_file } diff --git a/test/integration/default/controls/services_spec.rb b/test/integration/default/controls/services_spec.rb index 3fe020b..1da50b7 100644 --- a/test/integration/default/controls/services_spec.rb +++ b/test/integration/default/controls/services_spec.rb @@ -13,10 +13,13 @@ else %w(server client).each do |role| - prefix = case os[:name] - when 'fedora' then "openvpn-#{role}" - else 'openvpn' - end + prefix = + case os[:name] + when 'fedora' then + "openvpn-#{role}" + else + 'openvpn' + end describe service("#{prefix}@my#{role}1.service") do it { should be_enabled }