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/service_state_spec.rb
Views: 11655
1
RSpec.describe Msf::ServiceState do
2
context 'CONSTANTS' do
3
context 'Closed' do
4
subject(:closed) {
5
described_class::Closed
6
}
7
8
it { is_expected.to eq('closed') }
9
end
10
11
context 'Filtered' do
12
subject(:filtered) {
13
described_class::Filtered
14
}
15
16
it { is_expected.to eq('filtered') }
17
end
18
19
context 'Open' do
20
subject(:open) {
21
described_class::Open
22
}
23
24
it { is_expected.to eq('open') }
25
end
26
27
context 'Unknown' do
28
subject(:unknown) {
29
described_class::Unknown
30
}
31
32
it { is_expected.to eq('unknown') }
33
end
34
end
35
end
36