From adfeef2aa9fa322aa42d5711de349631429e790d Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Mon, 13 Oct 2014 11:28:19 -0500 Subject: [PATCH] Extract Msf::DBManager::Route shared examples MSP-11124 --- spec/lib/msf/db_manager_spec.rb | 3 +-- spec/support/shared/examples/msf/db_manager/route.rb | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 spec/support/shared/examples/msf/db_manager/route.rb diff --git a/spec/lib/msf/db_manager_spec.rb b/spec/lib/msf/db_manager_spec.rb index 29669fb829..a905c1f94b 100644 --- a/spec/lib/msf/db_manager_spec.rb +++ b/spec/lib/msf/db_manager_spec.rb @@ -35,6 +35,7 @@ describe Msf::DBManager do it_should_behave_like 'Msf::DBManager::Note' it_should_behave_like 'Msf::DBManager::Ref' 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::Session' 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 :initialize_adapter } 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_web_form } it { is_expected.to respond_to :report_web_page } diff --git a/spec/support/shared/examples/msf/db_manager/route.rb b/spec/support/shared/examples/msf/db_manager/route.rb new file mode 100644 index 0000000000..e3d1212a2e --- /dev/null +++ b/spec/support/shared/examples/msf/db_manager/route.rb @@ -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 \ No newline at end of file