Skip to content

Commit d7f43a2

Browse files
committed
Fix base_spec
1 parent ecf246b commit d7f43a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def self.model_name
1919
allow(creds).to receive(:user_file)
2020
allow(creds).to receive(:userpass_file)
2121
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([])
22+
allow(creds).to receive(:additional_privates).and_return(['pass'])
23+
allow(creds).to receive(:additional_publics).and_return(['user'])
2424
allow(creds).to receive(:each).and_return(['user', 'pass'])
2525
allow(creds).to receive(:additional_publics).and_return([])
2626
creds

0 commit comments

Comments
 (0)