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

35 lines
633 B
Ruby

RSpec.describe Msf::ServiceState do
context 'CONSTANTS' do
context 'Closed' do
subject(:closed) {
described_class::Closed
}
it { is_expected.to eq('closed') }
end
context 'Filtered' do
subject(:filtered) {
described_class::Filtered
}
it { is_expected.to eq('filtered') }
end
context 'Open' do
subject(:open) {
described_class::Open
}
it { is_expected.to eq('open') }
end
context 'Unknown' do
subject(:unknown) {
described_class::Unknown
}
it { is_expected.to eq('unknown') }
end
end
end