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

Version Path
metasploit-credential-0.14.8 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0c spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0b spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.14.5 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.14.4 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.14.3 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.14.2 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.14.1 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.14.0 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.19 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.18 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.17 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.16 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.15 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.12 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.11 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.10 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.9 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.13.8 spec/models/metasploit/credential/login/status_spec.rb