2015-12-31 16:56:13 -06:00
|
|
|
RSpec.shared_examples_for 'Msf::DBManager::Adapter' do
|
2018-04-26 16:01:15 -05:00
|
|
|
|
2018-04-02 08:08:23 -05:00
|
|
|
if ENV['REMOTE_DB']
|
2018-04-26 16:01:15 -05:00
|
|
|
before {skip("Not used for remote data service")}
|
2018-04-02 08:08:23 -05:00
|
|
|
end
|
|
|
|
|
|
2014-10-13 14:53:40 -05:00
|
|
|
context 'CONSTANTS' do
|
|
|
|
|
context 'ADAPTER' do
|
|
|
|
|
subject(:adapter) {
|
|
|
|
|
described_class::ADAPTER
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
it { is_expected.to eq('postgresql') }
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it { is_expected.to respond_to :driver }
|
|
|
|
|
it { is_expected.to respond_to :drivers }
|
|
|
|
|
it { is_expected.to respond_to :drivers= }
|
|
|
|
|
it { is_expected.to respond_to :initialize_adapter }
|
|
|
|
|
end
|