File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
2+
23require 'spec_helper_acceptance'
34
45describe 'deferred values with dsc_lite' do
1819 idempotent_apply ( control_manifest )
1920 # optionally verify file contents
2021 on ( default , 'powershell.exe -NoProfile -NonInteractive -Command "(Get-Content -Raw C:/Temp/deferred_ok.txt)"' ) do |r |
21- expect ( r . stdout ) . to match ( / hello-world/ )
22+ expect ( r . stdout ) . to match ( %r{ hello-world} )
2223 end
2324 end
2425
2526 context 'dsc_lite with deferred' do
2627 it 'fails when passing Deferred directly to a DSC property' do
2728 # We currently expect failure (documenting the bug).
2829 result = apply_manifest ( dsc_deferred_direct , expect_failures : true )
29- expect ( result . stderr + result . stdout ) . to match ( / Deferred|serialize|to_json|downcase|implicit conversion/ i)
30+ expect ( result . stderr + result . stdout ) . to match ( %r{ Deferred|serialize|to_json|downcase|implicit conversion} i)
3031 end
3132
3233 it 'fails when assigning Deferred to a variable then to a DSC property' do
3334 result = apply_manifest ( dsc_deferred_var , expect_failures : true )
34- expect ( result . stderr + result . stdout ) . to match ( / Deferred|serialize|to_json|downcase|implicit conversion/ i)
35+ expect ( result . stderr + result . stdout ) . to match ( %r{ Deferred|serialize|to_json|downcase|implicit conversion} i)
3536 end
3637 end
3738end
You can’t perform that action at this time.
0 commit comments