debian-mirror-gitlab/spec/factories/git_wiki_commit_details.rb
2020-05-24 23:13:21 +05:30

15 lines
363 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :git_wiki_commit_details, class: 'Gitlab::Git::Wiki::CommitDetails' do
skip_create
transient do
author { create(:user) }
end
sequence(:message) { |n| "Commit message #{n}" }
initialize_with { new(author.id, author.username, author.name, author.email, message) }
end
end