Move "limited federation mode" config to x.mastodon area (#35041)
This commit is contained in:
parent
ed4788a342
commit
6f2aba989f
15 changed files with 30 additions and 30 deletions
|
|
@ -15,7 +15,7 @@ RSpec.describe UnallowDomainService do
|
|||
|
||||
context 'with limited federation mode', :inline_jobs do
|
||||
before do
|
||||
allow(Rails.configuration.x).to receive(:limited_federation_mode).and_return(true)
|
||||
allow(Rails.configuration.x.mastodon).to receive(:limited_federation_mode).and_return(true)
|
||||
end
|
||||
|
||||
describe '#call' do
|
||||
|
|
@ -34,7 +34,7 @@ RSpec.describe UnallowDomainService do
|
|||
|
||||
context 'without limited federation mode' do
|
||||
before do
|
||||
allow(Rails.configuration.x).to receive(:limited_federation_mode).and_return(false)
|
||||
allow(Rails.configuration.x.mastodon).to receive(:limited_federation_mode).and_return(false)
|
||||
end
|
||||
|
||||
describe '#call' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue