21
21
it_should_behave_like 'Msf::DBManager::Migration'
22
22
it_should_behave_like 'Msf::DBManager::ImportMsfXml'
23
23
24
+ context 'CONSTANTS' do
25
+ context 'ADAPTER' do
26
+ subject ( :adapter ) {
27
+ described_class ::ADAPTER
28
+ }
29
+
30
+ it { is_expected . to eq ( 'postgresql' ) }
31
+ end
32
+ end
33
+
34
+ it { is_expected . to respond_to :active }
35
+
24
36
context '#add_rails_engine_migration_paths' do
25
37
def add_rails_engine_migration_paths
26
38
db_manager . add_rails_engine_migration_paths
@@ -39,6 +51,23 @@ def add_rails_engine_migration_paths
39
51
end
40
52
end
41
53
54
+ it { is_expected . to respond_to :after_establish_connection }
55
+ it { is_expected . to respond_to :connect }
56
+ it { is_expected . to respond_to :connection_established? }
57
+ it { is_expected . to respond_to :create_db }
58
+ it { is_expected . to respond_to :disconnect }
59
+ it { is_expected . to respond_to :driver }
60
+ it { is_expected . to respond_to :drivers }
61
+ it { is_expected . to respond_to :drivers= }
62
+ it { is_expected . to respond_to :error }
63
+ it { is_expected . to respond_to :initialize_adapter }
64
+ it { is_expected . to respond_to :initialize_database_support }
65
+ it { is_expected . to respond_to :initialize_sink }
66
+ it { is_expected . to respond_to :modules_cached }
67
+ it { is_expected . to respond_to :modules_cached= }
68
+ it { is_expected . to respond_to :modules_cached }
69
+ it { is_expected . to respond_to :modules_cached= }
70
+
42
71
context '#purge_all_module_details' do
43
72
def purge_all_module_details
44
73
db_manager . purge_all_module_details
@@ -106,6 +135,8 @@ def purge_all_module_details
106
135
end
107
136
end
108
137
138
+ it { is_expected . to respond_to :queue }
139
+
109
140
context '#remove_module_details' do
110
141
def remove_module_details
111
142
db_manager . remove_module_details ( mtype , refname )
@@ -1217,6 +1248,8 @@ def remove_module_details
1217
1248
end
1218
1249
end
1219
1250
1251
+ it { is_expected . to respond_to :sink }
1252
+
1220
1253
context '#update_all_module_details' do
1221
1254
def update_all_module_details
1222
1255
db_manager . update_all_module_details
@@ -1788,4 +1821,10 @@ def loader.load_error(module_path, error)
1788
1821
end
1789
1822
end
1790
1823
end
1824
+
1825
+ it { is_expected . to respond_to :usable }
1826
+ it { is_expected . to respond_to :usable= }
1827
+ it { is_expected . to respond_to :warn_about_rubies }
1828
+ it { is_expected . to respond_to :workspace }
1829
+ it { is_expected . to respond_to :workspace= }
1791
1830
end
0 commit comments