2018-10-25 09:44:58 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :merge_request_diff do
|
|
|
|
association :merge_request
|
2019-10-01 20:06:26 -04:00
|
|
|
state { :collected }
|
|
|
|
commits_count { 1 }
|
2018-10-25 09:44:58 -04:00
|
|
|
|
|
|
|
base_commit_sha { Digest::SHA1.hexdigest(SecureRandom.hex) }
|
|
|
|
head_commit_sha { Digest::SHA1.hexdigest(SecureRandom.hex) }
|
|
|
|
start_commit_sha { Digest::SHA1.hexdigest(SecureRandom.hex) }
|
|
|
|
end
|
|
|
|
end
|