diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 15:08:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 15:08:08 +0300 |
commit | f1e2fca19a90a6992c2020cf8c2159cfb0b61bca (patch) | |
tree | c084a29873f0fe6ff42555c590da6a9d8527df91 /spec/models/merge_request_diff_commit_spec.rb | |
parent | 87ef501eacd66d7166183d20d84e33de022f7002 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/merge_request_diff_commit_spec.rb')
-rw-r--r-- | spec/models/merge_request_diff_commit_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/models/merge_request_diff_commit_spec.rb b/spec/models/merge_request_diff_commit_spec.rb index a296122ae09..8b51c6fae08 100644 --- a/spec/models/merge_request_diff_commit_spec.rb +++ b/spec/models/merge_request_diff_commit_spec.rb @@ -6,7 +6,10 @@ describe MergeRequestDiffCommit do let(:merge_request) { create(:merge_request) } let(:project) { merge_request.project } - it_behaves_like 'a BulkInsertSafe model', MergeRequestDiffCommit + it_behaves_like 'a BulkInsertSafe model', MergeRequestDiffCommit do + let(:valid_items_for_bulk_insertion) { build_list(:merge_request_diff_commit, 10) } + let(:invalid_items_for_bulk_insertion) { [] } # class does not have any validations defined + end describe '#to_hash' do subject { merge_request.commits.first } |