discourse/spec/fabricators/email_token_fabricator.rb

8 lines
144 B
Ruby

# frozen_string_literal: true
Fabricator(:email_token) do
user
email { |attrs| attrs[:user].email }
scope EmailToken.scopes[:signup]
end