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:
Diffstat (limited to 'spec/presenters/ml/model_presenter_spec.rb')
-rw-r--r--spec/presenters/ml/model_presenter_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/presenters/ml/model_presenter_spec.rb b/spec/presenters/ml/model_presenter_spec.rb
index dbbd3b57033..88bfa9eb4c6 100644
--- a/spec/presenters/ml/model_presenter_spec.rb
+++ b/spec/presenters/ml/model_presenter_spec.rb
@@ -40,4 +40,10 @@ RSpec.describe Ml::ModelPresenter, feature_category: :mlops do
it { is_expected.to eq("/#{project.full_path}/-/packages/#{model.latest_version.package_id}") }
end
end
+
+ describe '#path' do
+ subject { model1.present.path }
+
+ it { is_expected.to eq("/#{project.full_path}/-/ml/models/#{model1.id}") }
+ end
end