From 967349bce5d2630cc9a2207e7f4c77d6817d7579 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Mon, 23 Oct 2023 09:55:54 -0700 Subject: [PATCH] Fix expected URL for link verification (#4152) Its rubygems.org/gems/:name in the plural --- app/models/rubygem.rb | 2 +- test/jobs/verify_link_job_test.rb | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/models/rubygem.rb b/app/models/rubygem.rb index e82c560bcc6..076106d2ff0 100644 --- a/app/models/rubygem.rb +++ b/app/models/rubygem.rb @@ -393,7 +393,7 @@ def yank_versions!(version_id: nil) end def linkable_verification_uri - URI.join("https://rubygems.org/gem/", name) + URI.join("https://rubygems.org/gems/", name) end private diff --git a/test/jobs/verify_link_job_test.rb b/test/jobs/verify_link_job_test.rb index 08b53c7cbab..d12ae69c606 100644 --- a/test/jobs/verify_link_job_test.rb +++ b/test/jobs/verify_link_job_test.rb @@ -7,10 +7,10 @@ class VerifyLinkJobTest < ActiveJob::TestCase Site with valid linkbacks - + - + HTML @@ -19,10 +19,10 @@ class VerifyLinkJobTest < ActiveJob::TestCase Site with invalid linkbacks - + - notmygem + notmygem HTML @@ -33,7 +33,7 @@ class VerifyLinkJobTest < ActiveJob::TestCase mygem on Github: a gem among gems - my github gem on rubygems.org + my github gem on rubygems.org HTML @@ -44,7 +44,7 @@ class VerifyLinkJobTest < ActiveJob::TestCase mygem on Github: a gem among gems - my github gem on rubygems.org + my github gem on rubygems.org HTML