Sha256: 118edfdc742e635e8f0a7390602ff42d048c844932d05bbb6758d24b461add25
Contents?: true
Size: 1.7 KB
Versions: 69
Compression:
Stored size: 1.7 KB
Contents
require 'spec_helper' describe Metasploit::Model::Login::Status do context 'CONSTANTS' do context 'ALL' do subject(:all) do described_class::ALL end it { should include described_class::DENIED_ACCESS } it { should include described_class::DISABLED } it { should include described_class::LOCKED_OUT } it { should include described_class::SUCCESSFUL } it { should include described_class::UNABLE_TO_CONNECT } it { should include described_class::UNTRIED } end context 'DENIED_ACCESS' do subject(:denied_access) do described_class::DENIED_ACCESS end it { should == 'Denied Access' } it { should be_in described_class::ALL } end context 'DISABLED' do subject(:disabled) do described_class::DISABLED end it { should == 'Disabled' } it { should be_in described_class::ALL } end context 'LOCKED_OUT' do subject(:locked_out) do described_class::LOCKED_OUT end it { should == 'Locked Out' } it { should be_in described_class::ALL } end context 'SUCCESSFUL' do subject(:successful) do described_class::SUCCESSFUL end it { should == 'Successful' } it { should be_in described_class::ALL } end context 'UNABLE_TO_CONNECT' do subject(:unabled_to_connect) do described_class::UNABLE_TO_CONNECT end it { should == 'Unable to Connect' } it { should be_in described_class::ALL } end context 'UNTRIED' do subject(:untried) do described_class::UNTRIED end it { should == 'Untried' } it { should be_in described_class::ALL } end end end
Version data entries
69 entries across 69 versions & 1 rubygems