mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
ensure that the metasploit database environment variable is unset
This commit is contained in:
parent
e9a3f58788
commit
eccf61bec5
@ -619,6 +619,10 @@ RSpec.describe Metasploit::Framework::Database do
|
||||
end
|
||||
|
||||
context 'without MSF_DATABASE_CONFIG' do
|
||||
before(:each) do
|
||||
ENV.delete('MSF_DATABASE_CONFIG')
|
||||
end
|
||||
|
||||
it { is_expected.to be_nil }
|
||||
end
|
||||
end
|
||||
@ -667,4 +671,4 @@ RSpec.describe Metasploit::Framework::Database do
|
||||
expect(user_configurations_pathname).to eq(Pathname.new(config_root).join('database.yml'))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user