parent
c09335985b
commit
6a54f0ac4c
|
@ -21,6 +21,18 @@ describe Msf::DBManager do
|
||||||
it_should_behave_like 'Msf::DBManager::Migration'
|
it_should_behave_like 'Msf::DBManager::Migration'
|
||||||
it_should_behave_like 'Msf::DBManager::ImportMsfXml'
|
it_should_behave_like 'Msf::DBManager::ImportMsfXml'
|
||||||
|
|
||||||
|
context 'CONSTANTS' do
|
||||||
|
context 'ADAPTER' do
|
||||||
|
subject(:adapter) {
|
||||||
|
described_class::ADAPTER
|
||||||
|
}
|
||||||
|
|
||||||
|
it { is_expected.to eq('postgresql') }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
it { is_expected.to respond_to :active }
|
||||||
|
|
||||||
context '#add_rails_engine_migration_paths' do
|
context '#add_rails_engine_migration_paths' do
|
||||||
def add_rails_engine_migration_paths
|
def add_rails_engine_migration_paths
|
||||||
db_manager.add_rails_engine_migration_paths
|
db_manager.add_rails_engine_migration_paths
|
||||||
|
@ -39,6 +51,23 @@ describe Msf::DBManager do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { is_expected.to respond_to :after_establish_connection }
|
||||||
|
it { is_expected.to respond_to :connect }
|
||||||
|
it { is_expected.to respond_to :connection_established? }
|
||||||
|
it { is_expected.to respond_to :create_db }
|
||||||
|
it { is_expected.to respond_to :disconnect }
|
||||||
|
it { is_expected.to respond_to :driver }
|
||||||
|
it { is_expected.to respond_to :drivers }
|
||||||
|
it { is_expected.to respond_to :drivers= }
|
||||||
|
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 :initialize_sink }
|
||||||
|
it { is_expected.to respond_to :modules_cached }
|
||||||
|
it { is_expected.to respond_to :modules_cached= }
|
||||||
|
it { is_expected.to respond_to :modules_cached }
|
||||||
|
it { is_expected.to respond_to :modules_cached= }
|
||||||
|
|
||||||
context '#purge_all_module_details' do
|
context '#purge_all_module_details' do
|
||||||
def purge_all_module_details
|
def purge_all_module_details
|
||||||
db_manager.purge_all_module_details
|
db_manager.purge_all_module_details
|
||||||
|
@ -106,6 +135,8 @@ describe Msf::DBManager do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { is_expected.to respond_to :queue }
|
||||||
|
|
||||||
context '#remove_module_details' do
|
context '#remove_module_details' do
|
||||||
def remove_module_details
|
def remove_module_details
|
||||||
db_manager.remove_module_details(mtype, refname)
|
db_manager.remove_module_details(mtype, refname)
|
||||||
|
@ -1217,6 +1248,8 @@ describe Msf::DBManager do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { is_expected.to respond_to :sink }
|
||||||
|
|
||||||
context '#update_all_module_details' do
|
context '#update_all_module_details' do
|
||||||
def update_all_module_details
|
def update_all_module_details
|
||||||
db_manager.update_all_module_details
|
db_manager.update_all_module_details
|
||||||
|
@ -1788,4 +1821,10 @@ describe Msf::DBManager do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { is_expected.to respond_to :usable }
|
||||||
|
it { is_expected.to respond_to :usable= }
|
||||||
|
it { is_expected.to respond_to :warn_about_rubies }
|
||||||
|
it { is_expected.to respond_to :workspace }
|
||||||
|
it { is_expected.to respond_to :workspace= }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue