Skip to content

Commit 563cb6f

Browse files
committed
Update method name in test
1 parent 0b3a556 commit 563cb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/lib/metasploit/framework/login_scanner/vnc_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
it 'returns a failed result when authentication fails' do
3333
expect_any_instance_of(Rex::Proto::RFB::Client).to receive(:handshake).and_return true
34-
expect_any_instance_of(Rex::Proto::RFB::Client).to receive(:authenticate).with(private).and_return false
34+
expect_any_instance_of(Rex::Proto::RFB::Client).to receive(:authenticate_with_type).with(nil,nil,private).and_return false
3535
result = login_scanner.attempt_login(test_cred)
3636
expect(result.status).to eq Metasploit::Model::Login::Status::INCORRECT
3737
end

0 commit comments

Comments
 (0)