Land #6350, make sure MSF_DATABASE_CONFIG is unset

bug/bundler_fix 4.11.5-2015121501
Gregory Mikeska 2015-12-14 14:48:19 -06:00
commit 9a2268fc1c
No known key found for this signature in database
GPG Key ID: 35F0DEED7BFB817A
1 changed files with 5 additions and 1 deletions

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