Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_visit.rb « users « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a98ee61332aee65d5fc2d662b32bb00eb259bab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

FactoryBot.define do
  factory :group_visit, class: 'Users::GroupVisit' do
    transient { target_user { association(:user) } }
    transient { target_group { association(:group) } }

    user_id { target_user.id }
    entity_id { target_group.id }
    visited_at { Time.now }
  end
end