parent
08aee23966
commit
b05a466e0a
|
@ -30,6 +30,7 @@ describe Msf::DBManager do
|
|||
it_should_behave_like 'Msf::DBManager::Note'
|
||||
it_should_behave_like 'Msf::DBManager::Service'
|
||||
it_should_behave_like 'Msf::DBManager::Sink'
|
||||
it_should_behave_like 'Msf::DBManager::Vuln'
|
||||
it_should_behave_like 'Msf::DBManager::WMAP'
|
||||
it_should_behave_like 'Msf::DBManager::Workspace'
|
||||
|
||||
|
@ -72,22 +73,16 @@ describe Msf::DBManager do
|
|||
it { is_expected.to respond_to :driver }
|
||||
it { is_expected.to respond_to :drivers }
|
||||
it { is_expected.to respond_to :drivers= }
|
||||
it { is_expected.to respond_to :each_vuln }
|
||||
it { is_expected.to respond_to :error }
|
||||
it { is_expected.to respond_to :events }
|
||||
it { is_expected.to respond_to :find_or_create_client }
|
||||
it { is_expected.to respond_to :find_or_create_ref }
|
||||
it { is_expected.to respond_to :find_or_create_report }
|
||||
it { is_expected.to respond_to :find_or_create_task }
|
||||
it { is_expected.to respond_to :find_or_create_vuln }
|
||||
it { is_expected.to respond_to :find_vuln_by_details }
|
||||
it { is_expected.to respond_to :find_vuln_by_refs }
|
||||
it { is_expected.to respond_to :get_client }
|
||||
it { is_expected.to respond_to :get_ref }
|
||||
it { is_expected.to respond_to :get_session }
|
||||
it { is_expected.to respond_to :get_vuln }
|
||||
it { is_expected.to respond_to :has_ref? }
|
||||
it { is_expected.to respond_to :has_vuln? }
|
||||
it { is_expected.to respond_to :initialize_adapter }
|
||||
it { is_expected.to respond_to :initialize_database_support }
|
||||
it { is_expected.to respond_to :report_artifact }
|
||||
|
@ -744,7 +739,6 @@ describe Msf::DBManager do
|
|||
it { is_expected.to respond_to :report_session_route }
|
||||
it { is_expected.to respond_to :report_session_route_remove }
|
||||
it { is_expected.to respond_to :report_task }
|
||||
it { is_expected.to respond_to :report_vuln }
|
||||
it { is_expected.to respond_to :report_vuln_attempt }
|
||||
it { is_expected.to respond_to :report_vuln_details }
|
||||
it { is_expected.to respond_to :report_web_form }
|
||||
|
@ -757,6 +751,5 @@ describe Msf::DBManager do
|
|||
it { is_expected.to respond_to :update_vuln_details }
|
||||
it { is_expected.to respond_to :usable }
|
||||
it { is_expected.to respond_to :usable= }
|
||||
it { is_expected.to respond_to :vulns }
|
||||
it { is_expected.to respond_to :warn_about_rubies }
|
||||
end
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
shared_examples_for 'Msf::DBManager::Vuln' do
|
||||
it { is_expected.to respond_to :each_vuln }
|
||||
it { is_expected.to respond_to :find_or_create_vuln }
|
||||
it { is_expected.to respond_to :find_vuln_by_details }
|
||||
it { is_expected.to respond_to :find_vuln_by_refs }
|
||||
it { is_expected.to respond_to :get_vuln }
|
||||
it { is_expected.to respond_to :has_vuln? }
|
||||
it { is_expected.to respond_to :report_vuln }
|
||||
it { is_expected.to respond_to :vulns }
|
||||
end
|
Loading…
Reference in New Issue