Skip to content

Commit 9efa842

Browse files
committed
Mock more methods for base_spec
1 parent 08d529b commit 9efa842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def self.model_name
1818
allow(creds).to receive(:username).and_return('user')
1919
allow(creds).to receive(:user_file)
2020
allow(creds).to receive(:userpass_file)
21+
allow(creds).to receive(:prepended_creds).and_return([])
22+
allow(creds).to receive(:additional_privates).and_return([])
23+
allow(creds).to receive(:additional_publics).and_return([])
2124
allow(creds).to receive(:each).and_return(['user', 'pass'])
2225
allow(creds).to receive(:additional_publics).and_return([])
2326
creds

0 commit comments

Comments
 (0)