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 5a0e11f commit 478cd2eCopy full SHA for 478cd2e
spec/spec_helper.rb
@@ -11,7 +11,9 @@
11
# Must be explicit as activerecord is optional dependency
12
require 'active_record/railtie'
13
14
-unless File.exist?('config/database.yml') || File.exist?(File.expand_path('~/.msf4/database.yml'))
+require 'metasploit/framework/database'
15
+# check if database.yml is present
16
+unless Metasploit::Framework::Database.configurations_pathname.try(:to_path)
17
fail 'RSPEC currently needs a configured database'
18
end
19
0 commit comments