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/host_state_spec.rb
Views: 11655
1
RSpec.describe Msf::HostState do
2
context 'CONSTANTS' do
3
context 'Alive' do
4
subject(:alive) {
5
described_class::Alive
6
}
7
8
it { is_expected.to eq('alive') }
9
end
10
11
context 'Dead' do
12
subject(:dead) {
13
described_class::Dead
14
}
15
16
it { is_expected.to eq('down') }
17
end
18
19
context 'Unknown' do
20
subject(:unknown) {
21
described_class::Unknown
22
}
23
24
it { is_expected.to eq('unknown') }
25
end
26
end
27
end
28