Update rspec

bug/bundler_fix
wchen-r7 2017-01-11 14:23:28 -06:00
parent 2377f17663
commit 90c42b4740
1 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,9 @@ RSpec.shared_examples_for 'Metasploit::Framework::LoginScanner::Base' do | opts
allow(creds).to receive(:username)
allow(creds).to receive(:user_file)
allow(creds).to receive(:userpass_file)
allow(creds).to receive(:additional_publics).and_return([])
allow(creds).to receive(:prepended_creds).and_return([])
allow(creds).to receive(:additional_privates).and_return([])
allow(creds).to receive(:additional_publics).and_return(['user'])
login_scanner.cred_details = creds
expect(login_scanner).to_not be_valid
expect(login_scanner.errors[:cred_details]).to include "must respond to :each"