mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
Nuke all SiteSetting.stubs
from our codebase.
This commit is contained in:
@ -283,7 +283,7 @@ describe InvitesController do
|
||||
context 'new registrations are disabled' do
|
||||
let(:topic) { Fabricate(:topic) }
|
||||
let(:invite) { topic.invite_by_email(topic.user, "iceking@adventuretime.ooo") }
|
||||
before { SiteSetting.stubs(:allow_new_registrations).returns(false) }
|
||||
before { SiteSetting.allow_new_registrations = false }
|
||||
|
||||
it "doesn't redeem the invite" do
|
||||
Invite.any_instance.stubs(:redeem).never
|
||||
|
Reference in New Issue
Block a user