fix: Current.user nil issue when using access tokens (#2012)

This commit is contained in:
Sojan Jose
2021-03-29 23:26:20 +05:30
committed by GitHub
parent 24fea5fbe0
commit 6bb026621d
5 changed files with 8 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ FactoryBot.define do
factory :contact do
sequence(:name) { |n| "Contact #{n}" }
sequence(:email) { |n| "contact-#{n}@example.com" }
phone_number { '+123456789011' }
phone_number { Faker::PhoneNumber.cell_phone_in_e164 }
avatar { fixture_file_upload(Rails.root.join('spec/assets/avatar.png'), 'image/png') }
account
end