Extract Msf::DBManager::Web shared examples

MSP-11124
bug/bundler_fix
Luke Imhoff 2014-10-13 12:01:49 -05:00
parent f472411c8c
commit 43a4858fe3
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 7 additions and 4 deletions

View File

@ -45,6 +45,7 @@ describe Msf::DBManager do
it_should_behave_like 'Msf::DBManager::VulnAttempt'
it_should_behave_like 'Msf::DBManager::VulnDetail'
it_should_behave_like 'Msf::DBManager::WMAP'
it_should_behave_like 'Msf::DBManager::Web'
it_should_behave_like 'Msf::DBManager::Workspace'
context 'CONSTANTS' do
@ -89,10 +90,6 @@ describe Msf::DBManager do
it { is_expected.to respond_to :error }
it { is_expected.to respond_to :initialize_adapter }
it { is_expected.to respond_to :initialize_database_support }
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_site }
it { is_expected.to respond_to :report_web_vuln }
it { is_expected.to respond_to :service_name_map }
it { is_expected.to respond_to :usable }
it { is_expected.to respond_to :usable= }

View File

@ -0,0 +1,6 @@
shared_examples_for 'Msf::DBManager::Web' do
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_site }
it { is_expected.to respond_to :report_web_vuln }
end