Skip to content

Commit a5d589e

Browse files
committed
Railgun calls should return a hash
1 parent 6ceab3d commit a5d589e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/lib/msf/core/post/windows/runas_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
let(:advapi32) do
1616
advapi32 = double('advapi32')
17-
advapi32.stub(:CreateProcessWithLogonW).and_return(
17+
advapi32.stub(:CreateProcessWithLogonW).and_return({
1818
'return' => true,
1919
'lpProcessInformation' => process_info
20-
)
20+
})
2121
advapi32.stub(:CreateProcessAsUserA).and_return ({
2222
'return' => true,
2323
'lpProcessInformation' => process_info
@@ -33,7 +33,7 @@
3333
double('kernel32', CloseHandle: nil)
3434
end
3535

36-
subject do
36+
let(:subject) do
3737
mod = Module.new
3838
mod.extend described_class
3939
stubs = [ :vprint_status, :print_status, :vprint_good, :print_good, :print_error ]

0 commit comments

Comments
 (0)