Skip to content

Commit c97dba3

Browse files
committed
creds should mock these methods too
1 parent 99f4715 commit c97dba3

File tree

1 file changed

+3
-1
lines changed
  • spec/support/shared/examples/metasploit/framework/tcp

1 file changed

+3
-1
lines changed

spec/support/shared/examples/metasploit/framework/tcp/client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
allow(creds).to receive(:username)
1212
allow(creds).to receive(:user_file)
1313
allow(creds).to receive(:userpass_file)
14-
allow(creds).to receive(:additional_publics).and_return([])
14+
allow(creds).to receive(:prepend_creds).and_return([])
15+
allow(creds).to receive(:additional_privates).and_return([])
16+
allow(creds).to receive(:additional_publics).and_return(['user'])
1517
login_scanner.cred_details = creds
1618
end
1719

0 commit comments

Comments
 (0)