Update method name in test
parent
0b3a5567a4
commit
563cb6f18f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue