Sha256: 369c021f88f54f940ca843e7feadb375722393409160cb4363287a71d7f3d16e

Contents?: true

Size: 552 Bytes

Versions: 33

Compression:

Stored size: 552 Bytes

Contents

FactoryBot.define do
  factory :metasploit_credential_private,
          class: Metasploit::Credential::Private do
    data { generate :metasploit_credential_private_data }
    # only subclasses will populate #type column in STI, so need to fake it to test root class
    type { generate :metasploit_credential_private_type }
  end

  sequence :metasploit_credential_private_data do |n|
    "metasploit_credential_private_data#{n}"
  end

  sequence :metasploit_credential_private_type do |n|
    "Metasploit::Credential::Private::Type#{n}"
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
metasploit-credential-5.0.1 spec/factories/metasploit/credential/privates.rb
metasploit-credential-5.0.0 spec/factories/metasploit/credential/privates.rb
metasploit-credential-4.0.5 spec/factories/metasploit/credential/privates.rb
metasploit-credential-4.0.4 spec/factories/metasploit/credential/privates.rb
metasploit-credential-4.0.3 spec/factories/metasploit/credential/privates.rb
metasploit-credential-4.0.2 spec/factories/metasploit/credential/privates.rb
metasploit-credential-4.0.1 spec/factories/metasploit/credential/privates.rb
metasploit-credential-4.0.0 spec/factories/metasploit/credential/privates.rb
metasploit-credential-3.0.4 spec/factories/metasploit/credential/privates.rb
metasploit-credential-3.0.3 spec/factories/metasploit/credential/privates.rb
metasploit-credential-3.0.2 spec/factories/metasploit/credential/privates.rb
metasploit-credential-3.0.1 spec/factories/metasploit/credential/privates.rb
metasploit-credential-3.0.0 spec/factories/metasploit/credential/privates.rb