2015-12-31 16:56:13 -06:00
|
|
|
RSpec.shared_examples_for 'Msf::DBManager::Vuln' do
|
2018-04-02 08:08:23 -05:00
|
|
|
|
|
|
|
|
unless ENV['REMOTE_DB']
|
|
|
|
|
it { is_expected.to respond_to :each_vuln }
|
|
|
|
|
it { is_expected.to respond_to :find_vuln_by_refs }
|
|
|
|
|
it { is_expected.to respond_to :find_or_create_vuln }
|
|
|
|
|
it { is_expected.to respond_to :has_vuln? }
|
|
|
|
|
it { is_expected.to respond_to :get_vuln }
|
|
|
|
|
it { is_expected.to respond_to :find_vuln_by_details }
|
|
|
|
|
end
|
|
|
|
|
|
2014-10-09 15:51:39 -05:00
|
|
|
it { is_expected.to respond_to :report_vuln }
|
|
|
|
|
it { is_expected.to respond_to :vulns }
|
|
|
|
|
end
|