debian-mirror-gitlab/spec/factories/merge_request_diffs.rb

14 lines
372 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :merge_request_diff do
association :merge_request
2019-12-21 20:55:43 +05:30
state { :collected }
commits_count { 1 }
2018-12-13 13:39:08 +05:30
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