Files
metasploit-gs/spec/lib/msf/database_event_spec.rb
T
Luke Imhoff a0a19e5ce8 Spec classes, constants and methods from lib/msf/db.rb
MSP-11466

Method specces only check that the method is defined as they only need
to catch deleted methods during the reorganization.
2014-10-08 11:07:15 -05:00

22 lines
566 B
Ruby

RSpec.describe Msf::DatabaseEvent do
subject(:base_instance) {
base_class.new
}
let(:base_class) {
described_class = self.described_class
Class.new do
include described_class
end
}
it { is_expected.to respond_to :on_db_client }
it { is_expected.to respond_to :on_db_host }
it { is_expected.to respond_to :on_db_host_state }
it { is_expected.to respond_to :on_db_ref }
it { is_expected.to respond_to :on_db_service }
it { is_expected.to respond_to :on_db_service_state }
it { is_expected.to respond_to :on_db_vuln }
end