Change update check source to kmyblue origin

This commit is contained in:
KMY 2023-09-20 18:42:08 +09:00
parent ee6186a197
commit 7696216cbd
7 changed files with 19 additions and 4 deletions

View file

@ -6,7 +6,7 @@ RSpec.describe SoftwareUpdateCheckService, type: :service do
subject { described_class.new }
shared_examples 'when the feature is enabled' do
let(:full_update_check_url) { "#{update_check_url}?version=#{Mastodon::Version.to_s.split('+')[0]}" }
let(:full_update_check_url) { "#{update_check_url}?version=#{Mastodon::Version.kmyblue_major}.#{Mastodon::Version.kmyblue_minor}-lts" }
let(:devops_role) { Fabricate(:user_role, name: 'DevOps', permissions: UserRole::FLAGS[:view_devops]) }
let(:owner_user) { Fabricate(:user, role: UserRole.find_by(name: 'Owner')) }
@ -139,7 +139,7 @@ RSpec.describe SoftwareUpdateCheckService, type: :service do
end
context 'when using the default update checking API' do
let(:update_check_url) { 'https://api.joinmastodon.org/update-check' }
let(:update_check_url) { 'https://kmy.blue/update-check' }
it_behaves_like 'when the feature is enabled'
end