Skip to content

Commit 48fc561

Browse files
committed
(RUBOCOP) Autocorrect
1 parent 7201c6d commit 48fc561

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

lib/puppet/type/dsc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def change_to_s(currentvalue, newvalue)
4545
if currentvalue == :absent || currentvalue.nil?
4646
_("invoked #{resource.parameters[:module].value}\\#{resource.parameters[:resource_name].value}")
4747
else
48-
super(currentvalue, newvalue)
48+
super
4949
end
5050
end
5151
end

spec/acceptance/basic_functionality/negative/dsc_on_linux_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
# NOTE: this is a master/agent test that does not run with Litmus.
34
# require 'spec_helper_acceptance'
45

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
begin
2828
require 'deep_merge'
29-
default_facts.deep_merge!(YAML.safe_load(File.read(f), permitted_classes: [], permitted_symbols: [], aliases: true))
29+
default_facts.deep_merge!(YAML.safe_load_file(f, permitted_classes: [], permitted_symbols: [], aliases: true))
3030
rescue StandardError => e
3131
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
3232
end

spec/unit/puppet_x/dsc_lite/dsc_type_helpers_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# rubocop:disable RSpec/FilePath
43
require 'spec_helper'
54
require 'puppet_x/puppetlabs/dsc_lite/dsc_type_helpers'
65

spec/unit/puppet_x/dsc_lite/powershell_hash_formatter_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# rubocop:disable RSpec/FilePath
43
require 'spec_helper'
54
require 'puppet_x'
65
require 'puppet_x/puppetlabs/dsc_lite/powershell_hash_formatter'

0 commit comments

Comments
 (0)