about summary refs log tree commit diff
path: root/spec/services/app_sign_up_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/app_sign_up_service_spec.rb')
-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