Fix dumb inverted logic. Thanks, rspec!

bug/bundler_fix
James Lee 2015-03-31 14:28:07 -05:00
parent 8b8ec5990a
commit 76bfaa6ce9
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
2 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,7 @@ module Msf::DBManager::ExploitAttempt
username = opts[:username]
mname = opts[:module]
if ! vuln.nil?
if vuln.nil?
ref_names = mrefs.map { |ref|
if ref.respond_to?(:ctx_id) and ref.respond_to?(:ctx_val)
"#{ref.ctx_id}-#{ref.ctx_val}"

View File

@ -44,6 +44,7 @@ shared_examples_for 'Msf::DBManager::ExploitAttempt' do
context 'without a vuln' do
let(:vuln) { nil }
specify do
expect {
report_exploit_success