We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e08ae commit 1df08cfCopy full SHA for 1df08cf
spec/lib/msf/db_manager_spec.rb
@@ -20,6 +20,24 @@
20
21
it_should_behave_like 'Msf::DBManager::ImportMsfXml'
22
23
+ context '#initialize_metasploit_data_models' do
24
+ def initialize_metasploit_data_models
25
+ db_manager.initialize_metasploit_data_models
26
+ end
27
+
28
+ it 'should not add duplicate paths to ActiveRecord::Migrator.migrations_paths' do
29
+ initialize_metasploit_data_models
30
31
+ expect {
32
33
+ }.to_not change {
34
+ ActiveRecord::Migrator.migrations_paths.length
35
+ }
36
37
+ ActiveRecord::Migrator.migrations_paths.uniq.should == ActiveRecord::Migrator.migrations_paths
38
39
40
41
context '#purge_all_module_details' do
42
def purge_all_module_details
43
db_manager.purge_all_module_details
0 commit comments