summaryrefslogtreecommitdiff
path: root/spec/functional/mixin/powershell_out_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/mixin/powershell_out_spec.rb')
-rw-r--r--spec/functional/mixin/powershell_out_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/mixin/powershell_out_spec.rb b/spec/functional/mixin/powershell_out_spec.rb
index 22df0f92c9..801910cd87 100644
--- a/spec/functional/mixin/powershell_out_spec.rb
+++ b/spec/functional/mixin/powershell_out_spec.rb
@@ -23,15 +23,15 @@ describe Chef::Mixin::PowershellOut, :windows_only do
describe "#powershell_out" do
it "runs a powershell command and collects stdout" do
- expect(powershell_out("get-process").run_command.stdout).to match /Handles/
+ expect(powershell_out("get-process").run_command.stdout).to match(/Handles/)
end
it "uses :powershell by default" do
- expect(powershell_out("$PSVersionTable").run_command.stdout).to match /CLRVersion/
+ expect(powershell_out("$PSVersionTable").run_command.stdout).to match(/CLRVersion/)
end
it ":pwsh interpreter uses core edition", :pwsh_installed do
- expect(powershell_out("$PSVersionTable", :pwsh).run_command.stdout).to match /Core/
+ expect(powershell_out("$PSVersionTable", :pwsh).run_command.stdout).to match(/Core/)
end
it "does not raise exceptions when the command is invalid" do
@@ -41,7 +41,7 @@ describe Chef::Mixin::PowershellOut, :windows_only do
describe "#powershell_out!" do
it "runs a powershell command and collects stdout" do
- expect(powershell_out!("get-process").run_command.stdout).to match /Handles/
+ expect(powershell_out!("get-process").run_command.stdout).to match(/Handles/)
end
it "raises exceptions when the command is invalid" do