DEV: Apply syntax_tree formatting to plugins/*

This commit is contained in:
David Taylor
2023-01-06 20:42:16 +00:00
parent 93e2dad656
commit 055310cea4
110 changed files with 3712 additions and 3158 deletions

View File

@ -142,17 +142,38 @@ describe Chat::ChatChannelFetcher do
fab!(:group_user) { Fabricate(:group_user, group: group, user: user1) }
it "does not include the category channel for member of group with readonly access" do
category_channel.update!(chatable: Fabricate(:private_category, group: group, permission_type: CategoryGroup.permission_types[:readonly]))
category_channel.update!(
chatable:
Fabricate(
:private_category,
group: group,
permission_type: CategoryGroup.permission_types[:readonly],
),
)
expect(subject.all_secured_channel_ids(guardian)).to be_empty
end
it "includes the category channel for member of group with create_post access" do
category_channel.update!(chatable: Fabricate(:private_category, group: group, permission_type: CategoryGroup.permission_types[:create_post]))
category_channel.update!(
chatable:
Fabricate(
:private_category,
group: group,
permission_type: CategoryGroup.permission_types[:create_post],
),
)
expect(subject.all_secured_channel_ids(guardian)).to match_array([category_channel.id])
end
it "includes the category channel for member of group with full access" do
category_channel.update!(chatable: Fabricate(:private_category, group: group, permission_type: CategoryGroup.permission_types[:full]))
category_channel.update!(
chatable:
Fabricate(
:private_category,
group: group,
permission_type: CategoryGroup.permission_types[:full],
),
)
expect(subject.all_secured_channel_ids(guardian)).to match_array([category_channel.id])
end
end