Sha256: 9c49ea878880c2b86616a2c6ee6661a4427384422fbc43c004a8be0ee2ea8bda

Contents?: true

Size: 782 Bytes

Versions: 69

Compression:

Stored size: 782 Bytes

Contents

require 'spec_helper'

describe Metasploit::Credential::Origin::CrackedPassword do
  it_should_behave_like 'Metasploit::Concern.run'

  context 'associations' do
    it { should have_many(:cores).class_name('Metasploit::Credential::Core').dependent(:destroy) }
    it { should belong_to(:originating_core).class_name('Metasploit::Credential::Core') }
  end

  context 'database' do
    context 'columns' do
      it_should_behave_like 'timestamp database columns'

      context 'foreign keys' do
        it { should have_db_column(:metasploit_credential_core_id).of_type(:integer).with_options(null: false) }
      end
    end

    context 'indices' do
      context 'foreign keys' do
        it { should have_db_index(:metasploit_credential_core_id) }
      end
    end
  end

end

Version data entries

69 entries across 69 versions & 1 rubygems

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