Sha256: 77ab48da6fbeff2bb171cc2fde37f4bd8dbc84bc046b92f3ff4ea8246b122468

Contents?: true

Size: 553 Bytes

Versions: 89

Compression:

Stored size: 553 Bytes

Contents

FactoryGirl.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

89 entries across 89 versions & 1 rubygems

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