summaryrefslogtreecommitdiff
path: root/spec/factories/merge_request_diffs.rb
blob: 0c4c3244af5abb8be81733499e3dc691c9e42069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

FactoryBot.define do
  factory :merge_request_diff do
    association :merge_request
    state { :collected }
    commits_count { 1 }

    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