Skip to content

Commit e43a61e

Browse files
committed
rubocop corrections
1 parent 97a1f2d commit e43a61e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/acceptance/deferred_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require 'spec_helper_acceptance'
34

45
describe 'deferred values with dsc_lite' do
@@ -18,20 +19,20 @@
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
3738
end

0 commit comments

Comments
 (0)