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

@@ -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