Update method name in test

MS-2855/keylogger-mettle-extension
jgor 2017-12-14 17:17:41 -06:00
parent 0b3a5567a4
commit 563cb6f18f
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ RSpec.describe Metasploit::Framework::LoginScanner::VNC do
it 'returns a failed result when authentication fails' do
expect_any_instance_of(Rex::Proto::RFB::Client).to receive(:handshake).and_return true
expect_any_instance_of(Rex::Proto::RFB::Client).to receive(:authenticate).with(private).and_return false
expect_any_instance_of(Rex::Proto::RFB::Client).to receive(:authenticate_with_type).with(nil,nil,private).and_return false
result = login_scanner.attempt_login(test_cred)
expect(result.status).to eq Metasploit::Model::Login::Status::INCORRECT
end