Change: ホワイトリストが空でも設定が有効であればアカウント作成を保留 (#601)

* Change: ホワイトリストが空でも設定が有効であればアカウント作成を保留

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-02-19 09:20:57 +09:00 committed by GitHub
parent c8c8c873f4
commit efdd20bf7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 6 deletions

View file

@ -29,11 +29,11 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do
Setting.permit_new_account_domains = permit_new_account_domains
end
it 'created account in a simple case' do
it 'creates pending account in a simple case' do
expect(subject).to_not be_nil
expect(subject.uri).to eq 'https://foo.test'
expect(subject.suspended?).to be false
expect(subject.remote_pending).to be false
expect(subject.suspended?).to be true
expect(subject.remote_pending).to be true
end
context 'when is blocked' do