Files
metasploit-gs/spec/lib/msf/host_state_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

27 lines
479 B
Ruby

RSpec.describe Msf::HostState do
context 'CONSTANTS' do
context 'Alive' do
subject(:alive) {
described_class::Alive
}
it { is_expected.to eq('alive') }
end
context 'Dead' do
subject(:dead) {
described_class::Dead
}
it { is_expected.to eq('down') }
end
context 'Unknown' do
subject(:unknown) {
described_class::Unknown
}
it { is_expected.to eq('unknown') }
end
end
end