Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-08-25 05:07:39 +02:00
67 changed files with 1420 additions and 194 deletions

View File

@@ -11,7 +11,7 @@ RSpec.describe AppSignUpService, type: :service do
it 'returns nil when registrations are closed' do
tmp = Setting.registrations_mode
Setting.registrations_mode = 'none'
expect(subject.call(app, remote_ip, good_params)).to be_nil
expect { subject.call(app, remote_ip, good_params) }.to raise_error Mastodon::NotPermittedError
Setting.registrations_mode = tmp
end