diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-07 00:10:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-07 00:10:28 +0300 |
commit | a303eb5d329ee4fee3ad76b9c2e32ce1d6d4a13b (patch) | |
tree | d586f0a605912b6b4b519afca03b20e0ca0e9e65 /spec/components | |
parent | 2644e59eb5a3a976d445a08727f41428647fdbec (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/components')
-rw-r--r-- | spec/components/projects/ml/models_index_component_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/components/projects/ml/models_index_component_spec.rb b/spec/components/projects/ml/models_index_component_spec.rb index c42c94d5d01..b662e8c0a08 100644 --- a/spec/components/projects/ml/models_index_component_spec.rb +++ b/spec/components/projects/ml/models_index_component_spec.rb @@ -23,7 +23,7 @@ RSpec.describe Projects::Ml::ModelsIndexComponent, type: :component, feature_cat end subject(:component) do - described_class.new(paginator: paginator) + described_class.new(model_count: 5, paginator: paginator) end describe 'rendered' do @@ -43,13 +43,15 @@ RSpec.describe Projects::Ml::ModelsIndexComponent, type: :component, feature_cat { 'name' => model1.name, 'version' => model1.latest_version.version, - 'path' => "/#{project.full_path}/-/packages/#{model1.latest_version.package_id}", + 'versionPackagePath' => "/#{project.full_path}/-/packages/#{model1.latest_version.package_id}", + 'versionPath' => "/#{project.full_path}/-/ml/models/#{model1.id}/versions/#{model1.latest_version.id}", 'versionCount' => 1 }, { 'name' => model2.name, 'version' => nil, - 'path' => nil, + 'versionPackagePath' => nil, + 'versionPath' => nil, 'versionCount' => 0 } ], @@ -58,7 +60,8 @@ RSpec.describe Projects::Ml::ModelsIndexComponent, type: :component, feature_cat 'hasPreviousPage' => false, 'startCursor' => 'abcde', 'endCursor' => 'defgh' - } + }, + 'modelCount' => 5 }) end end |