Fixing the failing specs
for some reason on my box sock.closed? isnt being called. stubbing it out Kernel.select is being called and cant cast a mock object to an IO object ok to fix this I'm stubbing select on the scanner object then the call wont get passed onto the Kernel modulebug/bundler_fix
parent
28bf29980e
commit
262deac155
|
@ -48,9 +48,10 @@ describe Metasploit::Framework::LoginScanner::POP3 do
|
|||
before(:each) do
|
||||
sock.stub(:shutdown)
|
||||
sock.stub(:close)
|
||||
sock.stub(:closed?)
|
||||
expect(scanner).to receive(:connect)
|
||||
scanner.stub(:sock).and_return(sock)
|
||||
|
||||
scanner.should_receive(:select).with([sock],nil,nil,0.4)
|
||||
end
|
||||
|
||||
it "Server returns +OK" do
|
||||
|
|
Loading…
Reference in New Issue