Commit eda86aef authored by Cookstyle Bot's avatar Cookstyle Bot

Cookstyle Bot Auto Corrections with Cookstyle 6.18.8

This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (6.18.8). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.

### Style/ExpandPathArguments
  - **/spec/unit/recipes/agent_spec.rb:5**: Use `expand_path('../../../test/fixtures/data_bags', __dir__)` instead of `expand_path('../../../../test/fixtures/data_bags', __FILE__)`.
  - **/spec/unit/recipes/client_spec.rb:5**: Use `expand_path('../../../test/fixtures/data_bags', __dir__)` instead of `expand_path('../../../../test/fixtures/data_bags', __FILE__)`.
  - **/spec/unit/recipes/server_spec.rb:5**: Use `expand_path('../../../test/fixtures/data_bags', __dir__)` instead of `expand_path('../../../../test/fixtures/data_bags', __FILE__)`.
Signed-off-by: default avatarCookstyle <cookbooks@chef.io>
parent d27d8079
......@@ -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