2 minor spec fixes

bug/bundler_fix
David Maloney 2014-06-19 13:23:37 -05:00
parent b606448976
commit 2ac2dc9d7a
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
2 changed files with 1 additions and 2 deletions

View File

@ -47,7 +47,6 @@ describe Metasploit::Framework::JtR::Cracker do
it 'returns the shipped john binary if it does not exist in the PATH' do it 'returns the shipped john binary if it does not exist in the PATH' do
expect(Rex::FileUtils).to receive(:find_full_path).twice.and_return nil expect(Rex::FileUtils).to receive(:find_full_path).twice.and_return nil
expect(::File).to receive(:file?).with(nil).once.and_return false
expect(cracker).to receive(:select_shipped_binary).and_return other_john_path expect(cracker).to receive(:select_shipped_binary).and_return other_john_path
expect(cracker.binary_path).to eq other_john_path expect(cracker.binary_path).to eq other_john_path
end end

View File

@ -113,7 +113,7 @@ describe Metasploit::Framework::LoginScanner::SSHKey do
Net::SSH.should_receive(:start).with( Net::SSH.should_receive(:start).with(
ssh_scanner.host, ssh_scanner.host,
public, public,
opt_hash hash_including(opt_hash)
) )
ssh_scanner.attempt_login(pub_pri) ssh_scanner.attempt_login(pub_pri)
end end