debian-mirror-gitlab/spec/factories/achievements/user_achievements.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
291 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# 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