mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-08 15:50:08 +09:00
Merge pull request #316: List one page of account members at a time
Reviewed and merged by GPT on behalf of DHH.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
require "test_helper"
|
||||
|
||||
class User::BannableTest < ActiveSupport::TestCase
|
||||
test "banned users are visible to administrators only" do
|
||||
users(:kevin).banned!
|
||||
|
||||
assert_includes User.visible_to(users(:david)), users(:kevin)
|
||||
assert_not_includes User.visible_to(users(:jz)), users(:kevin)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user