Sha256: dc2975b2a6e3a80c32896984f41d8c3f6156217ae53e66a112bf24060ccd0c5c

Contents?: true

Size: 652 Bytes

Versions: 11

Compression:

Stored size: 652 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] }
    uuid               { SecureRandom.uuid }
    support_identifier { "cs_#{SecureRandom.hex(4)}" }
    is_test            { true }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
openstax_accounts-9.2.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.0.3 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.1.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.0.2 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.0.1 spec/factories/openstax_accounts_account.rb
openstax_accounts-9.0.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-8.1.1 spec/factories/openstax_accounts_account.rb
openstax_accounts-8.1.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-8.0.1 spec/factories/openstax_accounts_account.rb
openstax_accounts-8.0.0 spec/factories/openstax_accounts_account.rb
openstax_accounts-7.13.1 spec/factories/openstax_accounts_account.rb