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 )
@@ -16,18 +17,18 @@ def read_fixture(name)
1617
1718 # Litmus helper; returns a result with stdout/stderr/exit_code
1819 result = run_shell ( %q[powershell.exe -NoProfile -NonInteractive -Command "(Get-Content -Raw 'C:/Temp/deferred_ok.txt')"] )
19- expect ( result . stdout ) . to match ( / hello-world/ )
20+ expect ( result . stdout ) . to match ( %r{ hello-world} )
2021 end
2122
2223 context 'dsc_lite with deferred' do
2324 it 'fails when passing Deferred directly to a DSC property' do
2425 result = apply_manifest ( dsc_deferred_direct , expect_failures : true )
25- expect ( result . stderr + result . stdout ) . to match ( / Deferred|serialize|to_json|implicit conversion|TypeError|cannot|Puppet::Pops::Types::Deferred/ i)
26+ expect ( result . stderr + result . stdout ) . to match ( %r{ Deferred|serialize|to_json|implicit conversion|TypeError|cannot|Puppet::Pops::Types::Deferred} 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_variable , expect_failures : true )
30- expect ( result . stderr + result . stdout ) . to match ( / Deferred|serialize|to_json|implicit conversion|TypeError|cannot|Puppet::Pops::Types::Deferred/ i)
31+ expect ( result . stderr + result . stdout ) . to match ( %r{ Deferred|serialize|to_json|implicit conversion|TypeError|cannot|Puppet::Pops::Types::Deferred} i)
3132 end
3233 end
33- end
34+ end
You can’t perform that action at this time.
0 commit comments