models: set more creator names explicitly.

Set creators explicitly for bans, BURs, comment votes, and posts.
This commit is contained in:
evazion
2020-02-23 02:42:12 -06:00
parent 3a018ee9f7
commit e47d0e0d05
16 changed files with 18 additions and 64 deletions

View File

@@ -10,8 +10,8 @@ class ModActionTest < ActiveSupport::TestCase
should "hide ip addresses from non-moderators in ip ban modactions" do
as(@mod) { create(:ip_ban, ip_addr: "1.1.1.1", reason: "test") }
as(@user) { assert_equal(0, ModAction.search({}).count) }
as(@mod) { assert_equal(1, ModAction.search({}).count) }
assert_equal(0, ModAction.visible(@user).count)
assert_equal(1, ModAction.visible(@mod).count)
end
end
end