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.8.6 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.6.pre.realm.pre.uniqueness spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.4-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.4 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.3-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.3 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.2 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.2-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.1-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.8.1 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.17-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.17 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.16-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.16 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.15-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.15 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.14 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.13-java spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.13 spec/models/metasploit/credential/login/status_spec.rb
metasploit-credential-0.7.12-java spec/models/metasploit/credential/login/status_spec.rb