Sha256: 4ea9d34c71978772c84f5c53806a5ca3f0a3d4a51bbdcd558b630fa072c3fe12

Contents?: true

Size: 630 Bytes

Versions: 67

Compression:

Stored size: 630 Bytes

Contents

FactoryGirl.define do
  factory :metasploit_credential_password_hash,
          # no need to declare metasploit_credential_private as the :parent because :metasploit_credential_password_hash
          # uses its own data sequence to differentiate password hashes from other private data and #type is
          # automatically set by ActiveRecord because Metasploit::Credential::Password is an STI subclass.
          class: Metasploit::Credential::Password do
    ignore do
      password_data { generate :metasploit_credential_password_data }
    end

    data {
      BCrypt::Password.create(password_data).hash
    }
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
metasploit-credential-0.14.8 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.7 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.6 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.5 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.4 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.3 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.2 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.14.0 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.19 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.18 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.17 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.16 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.15 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.12 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.11 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.10 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.9 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.8 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.7 spec/factories/metasploit/credential/password_hashes.rb
metasploit-credential-0.13.6 spec/factories/metasploit/credential/password_hashes.rb