diff options
Diffstat (limited to 'spec/factories/merge_request_diff_commits.rb')
-rw-r--r-- | spec/factories/merge_request_diff_commits.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/merge_request_diff_commits.rb b/spec/factories/merge_request_diff_commits.rb new file mode 100644 index 00000000000..55626253e34 --- /dev/null +++ b/spec/factories/merge_request_diff_commits.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :merge_request_diff_commit do + association :merge_request_diff + + sha { Digest::SHA1.hexdigest(SecureRandom.hex) } + relative_order { 0 } + end +end |