discourse/spec/fabricators/user_associated_account_fabricator.rb

9 lines
241 B
Ruby
Raw Normal View History

# frozen_string_literal: true
Fabricator(:user_associated_account) do
provider_name "meecrosof"
provider_uid { sequence(:key) { |i| "#{i + 1}" } }
user
info { |attrs| { name: attrs[:user].username, email: attrs[:user].email } }
end