2020-05-11 23:09:31 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :git_wiki_commit_details, class: 'Gitlab::Git::Wiki::CommitDetails' do
|
|
|
|
skip_create
|
|
|
|
|
|
|
|
transient do
|
2021-03-16 11:11:17 -04:00
|
|
|
author { association(:user) }
|
2020-05-11 23:09:31 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
sequence(:message) { |n| "Commit message #{n}" }
|
|
|
|
|
|
|
|
initialize_with { new(author.id, author.username, author.name, author.email, message) }
|
|
|
|
end
|
|
|
|
end
|