Sha256: c82c3fc042f152edb260e91909933f608edded2e5346b55ed70502973082c4de

Contents?: true

Size: 750 Bytes

Versions: 12

Compression:

Stored size: 750 Bytes

Contents

FactoryBot.define do
  factory :openstax_accounts_account, class: OpenStax::Accounts::Account do
    openstax_uid       { -SecureRandom.hex(4).to_i(16)/2 }
    username           { SecureRandom.hex.to_s }
    access_token       { SecureRandom.hex.to_s }
    faculty_status     { OpenStax::Accounts::Account.faculty_statuses[:no_faculty_info] }
    role               { OpenStax::Accounts::Account.roles[:unknown_role] }
    school_type        { OpenStax::Accounts::Account.school_types[:unknown_school_type] }
    school_location    { OpenStax::Accounts::Account.school_locations[:unknown_school_location] }
    uuid               { SecureRandom.uuid }
    support_identifier { "cs_#{SecureRandom.hex(4)}" }
    is_test            { true }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
openstax_accounts-9.9.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.8.1 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.8.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.7.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.6.1 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.6.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.5.1 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.5.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.4.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.3.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.0.5 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.0.4 spec/factories/openstax_accounts_account.rb