diff options
Diffstat (limited to 'spec/unit/mixin/powershell_out_spec.rb')
-rw-r--r-- | spec/unit/mixin/powershell_out_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/unit/mixin/powershell_out_spec.rb b/spec/unit/mixin/powershell_out_spec.rb index e6a9186a77..7306332057 100644 --- a/spec/unit/mixin/powershell_out_spec.rb +++ b/spec/unit/mixin/powershell_out_spec.rb @@ -30,8 +30,7 @@ describe Chef::Mixin::PowershellOut, :windows_only do it "runs a command and returns the shell_out object" do ret = double("Mixlib::ShellOut") expect(object).to receive(:shell_out).with( - "powershell.exe #{flags} -Command \"Get-Process\"", - {} + "powershell.exe #{flags} -Command \"Get-Process\"" ).and_return(ret) expect(object.powershell_out("Get-Process")).to eql(ret) end @@ -62,8 +61,7 @@ describe Chef::Mixin::PowershellOut, :windows_only do it "runs a command and returns the shell_out object" do mixlib_shellout = double("Mixlib::ShellOut") expect(object).to receive(:shell_out).with( - "powershell.exe #{flags} -Command \"Get-Process\"", - {} + "powershell.exe #{flags} -Command \"Get-Process\"" ).and_return(mixlib_shellout) expect(mixlib_shellout).to receive(:error!) expect(object.powershell_out!("Get-Process")).to eql(mixlib_shellout) |