Change default of notify_mods_when_user_blocked to false

This commit is contained in:
Neil Lalonde 2013-09-05 11:27:15 -04:00
parent 71c1b8b9b9
commit cde631cbd1
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class SiteSetting < ActiveRecord::Base
setting(:num_flags_to_block_new_user, 3)
setting(:num_users_to_block_new_user, 3)
setting(:notify_mods_when_user_blocked, true)
setting(:notify_mods_when_user_blocked, false)
# used mainly for dev, force hostname for Discourse.base_url
# You would usually use multisite for this

View File

@ -122,6 +122,7 @@ describe SpamRulesEnforcer do
end
it 'sends private message to moderators' do
SiteSetting.stubs(:notify_mods_when_user_blocked).returns(true)
moderator = Fabricate(:moderator)
GroupMessage.expects(:create).with do |group, msg_type, params|
group == Group[:moderators].name and msg_type == :user_automatically_blocked and params[:user].id == user.id