Commit 33dbfa60 authored by Xorima Bot's avatar Xorima Bot

Cookstyle 6.18.8 Fixes

Issues found and resolved with: spec/unit/recipes/agent_spec.rb

 - 5:31 convention: Style/ExpandPathArguments - Use expand_path'../../../test/fixtures/data_bags', __dir__ instead of expand_path'../../../../test/fixtures/data_bags', __FILE__.

Issues found and resolved with: spec/unit/recipes/client_spec.rb

 - 5:31 convention: Style/ExpandPathArguments - Use expand_path'../../../test/fixtures/data_bags', __dir__ instead of expand_path'../../../../test/fixtures/data_bags', __FILE__.

Issues found and resolved with: spec/unit/recipes/server_spec.rb

 - 5:31 convention: Style/ExpandPathArguments - Use expand_path'../../../test/fixtures/data_bags', __dir__ instead of expand_path'../../../../test/fixtures/data_bags', __FILE__.
Signed-off-by: default avatarXorima Bot <xorimabot@avon-lea.co.uk>
parent d27d8079
# Changelog
## Unreleased
- resolved cookstyle error: spec/unit/recipes/agent_spec.rb:5:31 convention: `Style/ExpandPathArguments`
- resolved cookstyle error: spec/unit/recipes/client_spec.rb:5:31 convention: `Style/ExpandPathArguments`
- resolved cookstyle error: spec/unit/recipes/server_spec.rb:5:31 convention: `Style/ExpandPathArguments`
## 1.2.2 - 2020-05-14
- resolved cookstyle error: recipes/common.rb:20:35 convention: `Layout/TrailingWhitespace`
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
require 'json'
describe 'ossec::agent' do
let(:data_bags_path) { File.expand_path('../../../../test/fixtures/data_bags', __FILE__) }
let(:data_bags_path) { File.expand_path('../../../test/fixtures/data_bags', __dir__) }
let(:data_bag_ossec_ssh) { JSON.parse(File.read("#{data_bags_path}/ossec/ssh.json")) }
cached(:chef_run) do
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
require 'json'
describe 'ossec::client' do
let(:data_bags_path) { File.expand_path('../../../../test/fixtures/data_bags', __FILE__) }
let(:data_bags_path) { File.expand_path('../../../test/fixtures/data_bags', __dir__) }
let(:data_bag_ossec_ssh) { JSON.parse(File.read("#{data_bags_path}/ossec/ssh.json")) }
cached(:chef_run) do
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
require 'json'
describe 'ossec::server' do
let(:data_bags_path) { File.expand_path('../../../../test/fixtures/data_bags', __FILE__) }
let(:data_bags_path) { File.expand_path('../../../test/fixtures/data_bags', __dir__) }
let(:data_bag_ossec_ssh) { JSON.parse(File.read("#{data_bags_path}/ossec/ssh.json")) }
cached(:chef_run) do
......
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