Extract Msf::DBManager::VulnAttempt shared examples

MSP-11124
bug/bundler_fix
Luke Imhoff 2014-10-13 11:34:12 -05:00
parent 5067e43ac1
commit 3a2f8b7684
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,7 @@ describe Msf::DBManager do
it_should_behave_like 'Msf::DBManager::Sink' it_should_behave_like 'Msf::DBManager::Sink'
it_should_behave_like 'Msf::DBManager::Task' it_should_behave_like 'Msf::DBManager::Task'
it_should_behave_like 'Msf::DBManager::Vuln' it_should_behave_like 'Msf::DBManager::Vuln'
it_should_behave_like 'Msf::DBManager::VulnAttempt'
it_should_behave_like 'Msf::DBManager::VulnDetail' it_should_behave_like 'Msf::DBManager::VulnDetail'
it_should_behave_like 'Msf::DBManager::WMAP' it_should_behave_like 'Msf::DBManager::WMAP'
it_should_behave_like 'Msf::DBManager::Workspace' it_should_behave_like 'Msf::DBManager::Workspace'
@ -88,7 +89,6 @@ describe Msf::DBManager do
it { is_expected.to respond_to :error } it { is_expected.to respond_to :error }
it { is_expected.to respond_to :initialize_adapter } it { is_expected.to respond_to :initialize_adapter }
it { is_expected.to respond_to :initialize_database_support } it { is_expected.to respond_to :initialize_database_support }
it { is_expected.to respond_to :report_vuln_attempt }
it { is_expected.to respond_to :report_web_form } it { is_expected.to respond_to :report_web_form }
it { is_expected.to respond_to :report_web_page } it { is_expected.to respond_to :report_web_page }
it { is_expected.to respond_to :report_web_site } it { is_expected.to respond_to :report_web_site }

View File

@ -0,0 +1,3 @@
shared_examples_for 'Msf::DBManager::VulnAttempt' do
it { is_expected.to respond_to :report_vuln_attempt }
end