Sha256: 244b7b13b37d8901101ebdc6227e2bf8856f839785cc391b53d13c4e4a8efd69

Contents?: true

Size: 532 Bytes

Versions: 20

Compression:

Stored size: 532 Bytes

Contents

RSpec.describe Metasploit::Credential::PasswordHash, type: :model do
  it_should_behave_like 'Metasploit::Concern.run'

  it { is_expected.to be_a Metasploit::Credential::Private }

  context 'factories' do
    context 'metasploit_credential_password_hash' do
      subject(:metasploit_credential_password_hash) do
        FactoryGirl.build(:metasploit_credential_password_hash)
      end

      it { is_expected.to be_valid }
    end
  end

  context 'validations' do
    it { is_expected.to validate_presence_of :data }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
metasploit-credential-2.0.14 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.13 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.12 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.11 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.10 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.9 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.8 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.7 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.6 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.5 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.4 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.3 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.2 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.1 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-2.0.0 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-1.1.0 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-1.0.1 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-1.0.0 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-0.14.7 spec/models/metasploit/credential/password_hash_spec.rb
metasploit-credential-0.14.6 spec/models/metasploit/credential/password_hash_spec.rb