Skip to content

Commit 42777fe

Browse files
committed
fixup test 02c
1 parent 6f39ed4 commit 42777fe

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.rubocop_todo.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-10-08 10:43:51 UTC using RuboCop version 1.73.2.
3+
# on 2025-10-29 07:31:19 UTC using RuboCop version 1.73.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 2
9+
# Offense count: 3
1010
# This cop supports safe autocorrection (--autocorrect).
1111
RSpec/ExpectActual:
1212
Exclude:
@@ -27,3 +27,11 @@ RSpec/SpecFilePathFormat:
2727
Style/BitwisePredicate:
2828
Exclude:
2929
- 'lib/puppet/type/dsc.rb'
30+
31+
# Offense count: 1
32+
# This cop supports unsafe autocorrection (--autocorrect-all).
33+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
34+
# AllowedMethods: present?, blank?, presence, try, try!
35+
Style/SafeNavigation:
36+
Exclude:
37+
- 'lib/puppet/provider/base_dsc_lite/powershell.rb'

spec/acceptance/deferred_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def read_win_file_if_exists(path)
2222
let(:dsc_control_manifest_epp) { read_fixture('01b_file_deferred_with_epp.pp') }
2323
let(:dsc_deferred_direct) { read_fixture('02_dsc_deferred_direct.pp') }
2424
let(:dsc_deferred_inline) { read_fixture('02b_dsc_deferred_inline.pp') } # ← NEW
25-
let(:dsc_deferred_epp_inline) { read_fixture('02c_dsc_deferred_epp_inline.pp') } # ← NEW
25+
let(:dsc_deferred_epp_inline) { read_fixture('02c_dsc_deferred_inline_epp.pp') } # ← NEW
2626
let(:dsc_deferred_stringified) { read_fixture('03a_dsc_deferred_stringified.pp') }
2727
let(:dsc_deferred_bad_unwrap) { read_fixture('03b_dsc_deferred_bad_unwrap.pp') }
2828

@@ -71,7 +71,7 @@ def read_win_file_if_exists(path)
7171

7272
# NEW 02c: inline Deferred on the DSC property (no variable intermediary)
7373
it '02c: passing a Deferred inline while calling an epp' do
74-
apply = apply_manifest_debug(dsc_deferred_epp_inline)
74+
apply = apply_manifest(dsc_deferred_epp_inline)
7575
out = read_win_file_if_exists('C:/Temp/from_dsc_inline.txt')
7676
content = out[:content].strip
7777
if out[:exists] && content == 'hello-dsc-epp'

0 commit comments

Comments
 (0)