discourse/spec/fabricators/user_badge_fabricator.rb

9 lines
141 B
Ruby

# frozen_string_literal: true
Fabricator(:user_badge) do
user
badge
granted_at { Time.zone.now }
granted_by(fabricator: :admin)
end