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

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

FactoryBot.define do
  factory :git_wiki_commit_details, class: 'Gitlab::Git::Wiki::CommitDetails' do
    skip_create

    transient do
      author { association(:user) }
    end

    sequence(:message) { |n| "Commit message #{n}" }

    initialize_with { new(author.id, author.username, author.name, author.email, message) }
  end
end