about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-08-24 19:00:37 +0200
committerGitHub <noreply@github.com>2022-08-24 19:00:37 +0200
commitd83faa1a8902c91a5dbd0bf3d9740e3e19c1d623 (patch)
tree11ac6179fc4de63220b1ed45e81908f2bcf4c5d3 /spec
parent5920d8fe33d5ecb0c7ca20c3b255216bb8de4aa9 (diff)
Add ability to block sign-ups from IP (#19037)
Diffstat (limited to 'spec')
-rw-r--r--spec/services/app_sign_up_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/app_sign_up_service_spec.rb b/spec/services/app_sign_up_service_spec.rb
index e0c83b704..8ec4d4a7a 100644
--- a/spec/services/app_sign_up_service_spec.rb
+++ b/spec/services/app_sign_up_service_spec.rb
@@ -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