Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-07 00:10:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-07 00:10:28 +0300
commita303eb5d329ee4fee3ad76b9c2e32ce1d6d4a13b (patch)
treed586f0a605912b6b4b519afca03b20e0ca0e9e65 /spec/finders
parent2644e59eb5a3a976d445a08727f41428647fdbec (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/projects/ml/model_finder_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/finders/projects/ml/model_finder_spec.rb b/spec/finders/projects/ml/model_finder_spec.rb
index 4104507445e..a2c2836a63d 100644
--- a/spec/finders/projects/ml/model_finder_spec.rb
+++ b/spec/finders/projects/ml/model_finder_spec.rb
@@ -19,9 +19,11 @@ RSpec.describe Projects::Ml::ModelFinder, feature_category: :mlops do
is_expected.to eq([model3, model2, model1])
end
- it 'including the latest version', :aggregate_failures do
+ it 'including the latest version and project', :aggregate_failures do
expect(models[0].association_cached?(:latest_version)).to be(true)
+ expect(models[0].association_cached?(:project)).to be(true)
expect(models[1].association_cached?(:latest_version)).to be(true)
+ expect(models[1].association_cached?(:project)).to be(true)
end
it 'does not return models belonging to a different project' do