Skip to content

Commit 90c42b4

Browse files
committed
Update rspec
1 parent 2377f17 commit 90c42b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/support/shared/examples/metasploit/framework/login_scanner/login_scanner_base.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@
183183
allow(creds).to receive(:username)
184184
allow(creds).to receive(:user_file)
185185
allow(creds).to receive(:userpass_file)
186-
allow(creds).to receive(:additional_publics).and_return([])
186+
allow(creds).to receive(:prepended_creds).and_return([])
187+
allow(creds).to receive(:additional_privates).and_return([])
188+
allow(creds).to receive(:additional_publics).and_return(['user'])
187189
login_scanner.cred_details = creds
188190
expect(login_scanner).to_not be_valid
189191
expect(login_scanner.errors[:cred_details]).to include "must respond to :each"

0 commit comments

Comments
 (0)