mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-18 12:16:30 +09:00
Always just go through the settings object
This commit is contained in:
1 parent
bd3b0c5988
commit
5266ffc049
3 files changed
+3
-3
No files matched your search
@@ -30,7 +30,7 @@ class Rooms::ClosedsControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
test "create forbidden by non-admin when account restricts creation to admins" do
|
||||
accounts(:signal).restrict_room_creation_to_administrators = true
|
||||
accounts(:signal).settings.restrict_room_creation_to_administrators = true
|
||||
accounts(:signal).save!
|
||||
|
||||
sign_in :jz
|
||||
|
||||
@@ -25,7 +25,7 @@ class Rooms::OpensControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
test "create forbidden by non-admin when account restricts creation to admins" do
|
||||
accounts(:signal).restrict_room_creation_to_administrators = true
|
||||
accounts(:signal).settings.restrict_room_creation_to_administrators = true
|
||||
accounts(:signal).save!
|
||||
|
||||
sign_in :jz
|
||||
|
||||
Reference in new issue
Block a user