Sha256: 1a0d81cf789363ad1dc7f5b22e2d0f0215a148ca3586e8b498d76e17b9460b81

Contents?: true

Size: 615 Bytes

Versions: 33

Compression:

Stored size: 615 Bytes

Contents

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

  sequence :metasploit_credential_password_data do |n|
    "metasploit_credential_password#{n}"
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

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