diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 09:07:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 09:07:06 +0300 |
commit | dd4c30182c16fe27efbbf4c19594bb292fb4ac48 (patch) | |
tree | 3d2e0235a0ab5333a6a2d4990da409640dd2d26f /spec/models | |
parent | accf0d7db3d58a62212125703df39e341d327ec6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/concerns/batch_destroy_dependent_associations_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/merge_request/diff_llm_summary_spec.rb | 18 |
2 files changed, 1 insertions, 19 deletions
diff --git a/spec/models/concerns/batch_destroy_dependent_associations_spec.rb b/spec/models/concerns/batch_destroy_dependent_associations_spec.rb index e8d84fe9630..256cd386ce2 100644 --- a/spec/models/concerns/batch_destroy_dependent_associations_spec.rb +++ b/spec/models/concerns/batch_destroy_dependent_associations_spec.rb @@ -27,7 +27,7 @@ RSpec.describe BatchDestroyDependentAssociations do let_it_be(:build) { create(:ci_build, project: project) } let_it_be(:notification_setting) { create(:notification_setting, project: project) } let_it_be(:note) { create(:note, project: project) } - let_it_be(:merge_request) { create(:merge_request, source_project: project) } + let_it_be(:merge_request) { create(:merge_request, :skip_diff_creation, source_project: project) } it 'destroys multiple notes' do create(:note, project: project) diff --git a/spec/models/merge_request/diff_llm_summary_spec.rb b/spec/models/merge_request/diff_llm_summary_spec.rb deleted file mode 100644 index 860457add62..00000000000 --- a/spec/models/merge_request/diff_llm_summary_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe ::MergeRequest::DiffLlmSummary, feature_category: :code_review_workflow do - let_it_be_with_reload(:project) { create(:project, :repository) } - - subject(:merge_request_diff_llm_summary) { build(:merge_request_diff_llm_summary) } - - describe 'associations' do - it { is_expected.to belong_to(:merge_request_diff) } - it { is_expected.to belong_to(:user).optional } - it { is_expected.to validate_uniqueness_of(:merge_request_diff_id) } - it { is_expected.to validate_presence_of(:content) } - it { is_expected.to validate_length_of(:content).is_at_most(2056) } - it { is_expected.to validate_presence_of(:provider) } - end -end |