Files
metasploit-gs/spec/support/shared/examples/msf/db_manager/connection.rb
T
christopher lee e97693d056 Cleanup
2018-04-26 16:01:15 -05:00

15 lines
535 B
Ruby

RSpec.shared_examples_for 'Msf::DBManager::Connection' do
if ENV['REMOTE_DB']
before {skip("Not used for remote data service")}
end
it { is_expected.to respond_to :active }
it { is_expected.to respond_to :after_establish_connection }
it { is_expected.to respond_to :connect }
it { is_expected.to respond_to :connection_established? }
it { is_expected.to respond_to :create_db }
it { is_expected.to respond_to :disconnect }
it { is_expected.to respond_to :usable }
it { is_expected.to respond_to :usable= }
end