summaryrefslogtreecommitdiff
path: root/spec/models/merge_request_diff_commit_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/merge_request_diff_commit_spec.rb')
-rw-r--r--spec/models/merge_request_diff_commit_spec.rb5
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 }