Skip to content

Commit 6897d8e

Browse files
committed
rubocop
1 parent 805f833 commit 6897d8e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/acceptance/deferred_spec.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# spec/acceptance/deferred_spec.rb
22
# frozen_string_literal: true
3+
34
require 'spec_helper_acceptance'
45

56
def 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

0 commit comments

Comments
 (0)