mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
17 lines
513 B
Ruby
17 lines
513 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :oidc_account, class: OidcAccount do
|
|
provider { "openid_connect" }
|
|
uid { user&.email || generate(:random_email) }
|
|
|
|
# This is a live test account authenticated via Les Communes.
|
|
# See .env.test for tips on connecting the account for recording VCR cassettes.
|
|
factory :testdfc_account do
|
|
uid { "testdfc@protonmail.com" }
|
|
refresh_token { ENV.fetch("OPENID_REFRESH_TOKEN") }
|
|
updated_at { 1.day.ago }
|
|
end
|
|
end
|
|
end
|