Extract Msf::DBManager::Route shared examples

MSP-11124
bug/bundler_fix
Luke Imhoff 2014-10-13 11:28:19 -05:00
parent e7e12ec6a5
commit adfeef2aa9
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ describe Msf::DBManager do
it_should_behave_like 'Msf::DBManager::Note' it_should_behave_like 'Msf::DBManager::Note'
it_should_behave_like 'Msf::DBManager::Ref' it_should_behave_like 'Msf::DBManager::Ref'
it_should_behave_like 'Msf::DBManager::Report' it_should_behave_like 'Msf::DBManager::Report'
it_should_behave_like 'Msf::DBManager::Route'
it_should_behave_like 'Msf::DBManager::Service' it_should_behave_like 'Msf::DBManager::Service'
it_should_behave_like 'Msf::DBManager::Session' it_should_behave_like 'Msf::DBManager::Session'
it_should_behave_like 'Msf::DBManager::SessionEvent' it_should_behave_like 'Msf::DBManager::SessionEvent'
@ -87,8 +88,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_session_route }
it { is_expected.to respond_to :report_session_route_remove }
it { is_expected.to respond_to :report_vuln_attempt } 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 }

View File

@ -0,0 +1,4 @@
shared_examples_for 'Msf::DBManager::Route' do
it { is_expected.to respond_to :report_session_route }
it { is_expected.to respond_to :report_session_route_remove }
end