Sha256: a2d6d81f8cdd8f9a9a7d922ae6607a9b01e81001fe7a31aae16511ffee9a5233

Contents?: true

Size: 1.83 KB

Versions: 53

Compression:

Stored size: 1.83 KB

Contents

RSpec.describe Metasploit::Model::Login::Status, type: :model do
  context 'CONSTANTS' do
    context 'ALL' do
      subject(:all) do
        described_class::ALL
      end

      it { is_expected.to include described_class::DENIED_ACCESS }
      it { is_expected.to include described_class::DISABLED }
      it { is_expected.to include described_class::LOCKED_OUT }
      it { is_expected.to include described_class::SUCCESSFUL }
      it { is_expected.to include described_class::UNABLE_TO_CONNECT }
      it { is_expected.to include described_class::UNTRIED }
    end

    context 'DENIED_ACCESS' do
      subject(:denied_access) do
        described_class::DENIED_ACCESS
      end

      it { is_expected.to eq 'Denied Access' }
      it { is_expected.to be_in described_class::ALL }
    end

    context 'DISABLED' do
      subject(:disabled) do
        described_class::DISABLED
      end

      it { is_expected.to eq 'Disabled' }
      it { is_expected.to be_in described_class::ALL }
    end

    context 'LOCKED_OUT' do
      subject(:locked_out) do
        described_class::LOCKED_OUT
      end

      it { is_expected.to eq 'Locked Out' }
      it { is_expected.to be_in described_class::ALL }
    end

    context 'SUCCESSFUL' do
      subject(:successful) do
        described_class::SUCCESSFUL
      end

      it { is_expected.to eq 'Successful' }
      it { is_expected.to be_in described_class::ALL }
    end

    context 'UNABLE_TO_CONNECT' do
      subject(:unabled_to_connect) do
        described_class::UNABLE_TO_CONNECT
      end

      it { is_expected.to eq 'Unable to Connect' }
      it { is_expected.to be_in described_class::ALL }
    end

    context 'UNTRIED' do
      subject(:untried) do
        described_class::UNTRIED
      end

      it { is_expected.to eq 'Untried' }
      it { is_expected.to be_in described_class::ALL }
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.10 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.9 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.8 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.7 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.6 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.5 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.4 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.3 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.2 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.1 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-6.0.0 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.9 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.8 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.7 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.6 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.5 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.4 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.3 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-5.0.2 spec/models/metasploit/credential/login/status_spec.rb