Determine staff members based on flag
This replaces the old system based on email addresses, the aim is to make it more generic and thus appropriate for OSS/self-hosting See: https://3.basecamp.com/2914079/buckets/37331921/todos/9302705265#__recording_9320051455
This commit is contained in:
@@ -13,12 +13,6 @@ class IdentityTest < ActiveSupport::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
test "staff?" do
|
||||
assert Identity.new(email_address: "test@37signals.com").staff?
|
||||
assert Identity.new(email_address: "test@basecamp.com").staff?
|
||||
assert_not Identity.new(email_address: "test@example.com").staff?
|
||||
end
|
||||
|
||||
test "join" do
|
||||
identity = identities(:david)
|
||||
account = accounts(:initech)
|
||||
|
||||
Reference in New Issue
Block a user