CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/lib/msf/database_event_spec.rb
Views: 11655
1
RSpec.describe Msf::DatabaseEvent do
2
subject(:base_instance) {
3
base_class.new
4
}
5
6
let(:base_class) {
7
described_class = self.described_class
8
9
Class.new do
10
include described_class
11
end
12
}
13
14
it { is_expected.to respond_to :on_db_client }
15
it { is_expected.to respond_to :on_db_host }
16
it { is_expected.to respond_to :on_db_host_state }
17
it { is_expected.to respond_to :on_db_ref }
18
it { is_expected.to respond_to :on_db_service }
19
it { is_expected.to respond_to :on_db_service_state }
20
it { is_expected.to respond_to :on_db_vuln }
21
22
end
23