File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11# spec/acceptance/deferred_spec.rb
22# frozen_string_literal: true
3+
34require 'spec_helper_acceptance'
45
56def read_fixture ( name )
@@ -14,20 +15,20 @@ def read_fixture(name)
1415 it 'applies with native file + deferred (control succeeds)' do
1516 idempotent_apply ( control_manifest )
1617 on ( default , 'powershell.exe -NoProfile -NonInteractive -Command "(Get-Content -Raw C:/Temp/deferred_ok.txt)"' ) do |r |
17- expect ( r . stdout ) . to match ( / hello-world/ )
18+ expect ( r . stdout ) . to match ( %r{ hello-world} )
1819 end
1920 end
2021
2122 context 'dsc_lite with deferred' do
2223 it 'fails when passing Deferred directly to a DSC property' do
2324 result = apply_manifest ( dsc_deferred_direct , expect_failures : true )
2425 # broad match: we only assert that a Deferred/serialization-like error occurs
25- expect ( result . stderr + result . stdout ) . to match ( / Deferred|serialize|to_json|implicit conversion|TypeError|cannot/ i)
26+ expect ( result . stderr + result . stdout ) . to match ( %r{ Deferred|serialize|to_json|implicit conversion|TypeError|cannot} i)
2627 end
2728
2829 it 'fails when assigning Deferred to a variable then to a DSC property' do
2930 result = apply_manifest ( dsc_deferred_var , expect_failures : true )
30- expect ( result . stderr + result . stdout ) . to match ( / Deferred|serialize|to_json|implicit conversion|TypeError|cannot/ i)
31+ expect ( result . stderr + result . stdout ) . to match ( %r{ Deferred|serialize|to_json|implicit conversion|TypeError|cannot} i)
3132 end
3233 end
33- end
34+ end
You can’t perform that action at this time.
0 commit comments