Files
openfoodnetwork/spec/factories/oidc_account_factory.rb
David Cook 75dcee12a8 Re-record fixture
And document how to run it.
2025-03-25 10:38:34 +11:00

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