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>2019-12-25 21:07:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-25 21:07:46 +0300
commit319dea10f06e32d119c0d46b8ec7b898b92a53a3 (patch)
tree77d8e0070cfa2ad9f1a8e6be0b852b5758a502a0 /spec/helpers
parentcdd95ddd0197b8709947c2b3b4e0333e1d9a2934 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/gitlab_routing_helper_spec.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_routing_helper_spec.rb b/spec/helpers/gitlab_routing_helper_spec.rb
index e76ebcb5637..1955927e2df 100644
--- a/spec/helpers/gitlab_routing_helper_spec.rb
+++ b/spec/helpers/gitlab_routing_helper_spec.rb
@@ -113,6 +113,29 @@ describe GitlabRoutingHelper do
end
end
+ context 'artifacts' do
+ let_it_be(:project) { create(:project) }
+ let_it_be(:job) { create(:ci_build, project: project, name: 'test:job', artifacts_expire_at: 1.hour.from_now) }
+
+ describe '#fast_download_project_job_artifacts_path' do
+ it 'matches the Rails download path' do
+ expect(fast_download_project_job_artifacts_path(project, job)).to eq(download_project_job_artifacts_path(project, job))
+ end
+ end
+
+ describe '#fast_keep_project_job_artifacts_path' do
+ it 'matches the Rails keep path' do
+ expect(fast_keep_project_job_artifacts_path(project, job)).to eq(keep_project_job_artifacts_path(project, job))
+ end
+ end
+
+ describe '#fast_browse_project_job_artifacts_path' do
+ it 'matches the Rails browse path' do
+ expect(fast_browse_project_job_artifacts_path(project, job)).to eq(browse_project_job_artifacts_path(project, job))
+ end
+ end
+ end
+
context 'snippets' do
let_it_be(:personal_snippet) { create(:personal_snippet) }
let_it_be(:project_snippet) { create(:project_snippet) }