@@ -26,6 +26,7 @@ def read_win_file_if_exists(path)
2626
2727describe 'deferred values with dsc_lite' do
2828 let ( :control_manifest ) { read_fixture ( '01_file_deferred.pp' ) }
29+ let ( :dsc_control_manifest_epp ) { read_fixture ( '01b_file_deferred_with_epp.pp' ) }
2930 let ( :dsc_deferred_direct ) { read_fixture ( '02_dsc_deferred_direct.pp' ) }
3031 let ( :dsc_deferred_inline ) { read_fixture ( '02b_dsc_deferred_inline.pp' ) } # ← NEW
3132 let ( :dsc_deferred_epp_inline ) { read_fixture ( '02c_dsc_deferred_epp_inline.pp' ) } # ← NEW
@@ -40,6 +41,14 @@ def read_win_file_if_exists(path)
4041 expect ( out [ :content ] . strip ) . to eq ( 'hello-file' )
4142 end
4243
44+ it 'control (01b): native file + Deferred resolves to hello-file (EPP)' do
45+ result = idempotent_apply_debug ( dsc_control_manifest_epp )
46+ expect ( result . exit_code ) . to eq ( 0 )
47+ out = read_win_file_if_exists ( 'C:/Temp/deferred_ok.txt' )
48+ expect ( out [ :exists ] ) . to be ( true )
49+ expect ( out [ :content ] . strip ) . to eq ( 'hello-file' )
50+ end
51+
4352 it '02: passing Deferred via variable to DSC resolves to hello-dsc (otherwise flag bug)' do
4453 apply = apply_manifest_debug ( dsc_deferred_direct )
4554 out = read_win_file_if_exists ( 'C:/Temp/from_dsc.txt' )
@@ -68,8 +77,8 @@ def read_win_file_if_exists(path)
6877 end
6978
7079 # NEW 02c: inline Deferred on the DSC property (no variable intermediary)
71- it '02c: passing a Deferred inline whilke calling an epp' do
72- apply = apply_manifest_debug ( dsc_deferred_inline )
80+ it '02c: passing a Deferred inline while calling an epp' do
81+ apply = apply_manifest_debug ( dsc_deferred_epp_inline )
7382 out = read_win_file_if_exists ( 'C:/Temp/from_dsc_inline.txt' )
7483 content = out [ :content ] . strip
7584 if out [ :exists ] && content == 'hello-dsc-epp'
0 commit comments