Extract Msf::DBManager::Import::Nessus::NBE shared examples

MSP-11124
bug/bundler_fix
Luke Imhoff 2014-10-15 11:23:52 -05:00
parent 0c861848bc
commit 71af8fd9c2
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
3 changed files with 8 additions and 2 deletions

View File

@ -4,8 +4,6 @@ shared_examples_for 'Msf::DBManager::Import' do
it { is_expected.to respond_to :import }
it { is_expected.to respond_to :import_file }
it { is_expected.to respond_to :import_filetype_detect }
it { is_expected.to respond_to :import_nessus_nbe }
it { is_expected.to respond_to :import_nessus_nbe_file }
it { is_expected.to respond_to :import_nessus_xml }
it { is_expected.to respond_to :import_nessus_xml_file }
it { is_expected.to respond_to :import_nessus_xml_v2 }
@ -60,5 +58,6 @@ shared_examples_for 'Msf::DBManager::Import' do
it_should_behave_like 'Msf::DBManager::Import::Libpcap'
it_should_behave_like 'Msf::DBManager::Import::MBSA'
it_should_behave_like 'Msf::DBManager::Import::MetasploitFramework'
it_should_behave_like 'Msf::DBManager::Import::Nessus'
it_should_behave_like 'Msf::DBManager::Import::Qualys'
end

View File

@ -0,0 +1,3 @@
shared_examples_for 'Msf::DBManager::Import::Nessus' do
it_should_behave_like 'Msf::DBManager::Import::Nessus::NBE'
end

View File

@ -0,0 +1,4 @@
shared_examples_for 'Msf::DBManager::Import::Nessus::NBE' do
it { is_expected.to respond_to :import_nessus_nbe }
it { is_expected.to respond_to :import_nessus_nbe_file }
end