1
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:
Brent Cook 2015-12-14 14:29:25 -06:00
parent e9a3f58788
commit eccf61bec5

View File

@ -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