test: fix broken tests.

This commit is contained in:
evazion
2020-04-21 00:23:38 -05:00
parent 4041ff6f7e
commit 4abff072b7
6 changed files with 12 additions and 29 deletions

View File

@@ -37,7 +37,7 @@ class IpBan < ApplicationRecord
def create_mod_action
if new_record?
ModAction.log("#{CurrentUser.user.name} created ip ban for #{ip_addr}", :ip_ban_create)
ModAction.log("#{creator.name} created ip ban for #{ip_addr}", :ip_ban_create)
elsif is_deleted? == true && is_deleted_was == false
ModAction.log("#{CurrentUser.user.name} deleted ip ban for #{ip_addr}", :ip_ban_delete)
elsif is_deleted? == false && is_deleted_was == true