Skip to content

Commit b02dc7a

Browse files
committed
Merge branch 'landing/3971' into HEAD
Land rapid7#3791 - specs for code reorg
2 parents 50a2f4c + a0a19e5 commit b02dc7a

File tree

6 files changed

+388
-69
lines changed

6 files changed

+388
-69
lines changed

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--color
22
--format Fivemat
3+
--require spec_helper

spec/lib/msf/database_event_spec.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

spec/lib/msf/db_import_error_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RSpec.describe Msf::DBImportError do
2+
it { is_expected.to be_a RuntimeError }
3+
end

0 commit comments

Comments
 (0)