Use mastodon
config namespace to load software update default value via config_for
(#30534)
This commit is contained in:
parent
aeae152006
commit
c099797700
7 changed files with 23 additions and 12 deletions
|
@ -27,9 +27,10 @@ RSpec.describe Admin::SystemCheck::SoftwareVersionCheck do
|
|||
|
||||
context 'when checks are disabled' do
|
||||
around do |example|
|
||||
ClimateControl.modify UPDATE_CHECK_URL: '' do
|
||||
example.run
|
||||
end
|
||||
original = Rails.configuration.x.mastodon.software_update_url
|
||||
Rails.configuration.x.mastodon.software_update_url = ''
|
||||
example.run
|
||||
Rails.configuration.x.mastodon.software_update_url = original
|
||||
end
|
||||
|
||||
it 'returns true' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue