From a5d589ef559642a47c555d147d139825fa540069 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Thu, 19 Mar 2015 00:05:02 +0000 Subject: [PATCH] Railgun calls should return a hash --- spec/lib/msf/core/post/windows/runas_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/msf/core/post/windows/runas_spec.rb b/spec/lib/msf/core/post/windows/runas_spec.rb index 1106fecade..4832a252a6 100644 --- a/spec/lib/msf/core/post/windows/runas_spec.rb +++ b/spec/lib/msf/core/post/windows/runas_spec.rb @@ -14,10 +14,10 @@ describe Msf::Post::Windows::Runas do let(:advapi32) do advapi32 = double('advapi32') - advapi32.stub(:CreateProcessWithLogonW).and_return( + advapi32.stub(:CreateProcessWithLogonW).and_return({ 'return' => true, 'lpProcessInformation' => process_info - ) + }) advapi32.stub(:CreateProcessAsUserA).and_return ({ 'return' => true, 'lpProcessInformation' => process_info @@ -33,7 +33,7 @@ describe Msf::Post::Windows::Runas do double('kernel32', CloseHandle: nil) end - subject do + let(:subject) do mod = Module.new mod.extend described_class stubs = [ :vprint_status, :print_status, :vprint_good, :print_good, :print_error ]