debian-mirror-gitlab/spec/factories/achievements/user_achievements.rb
2023-05-27 22:25:52 +05:30

14 lines
291 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :user_achievement, class: 'Achievements::UserAchievement' do
user
achievement
awarded_by_user factory: :user
trait :revoked do
revoked_by_user factory: :user
revoked_at { Time.now }
end
end
end