group manager can invite members into the group from any restricted topic

This commit is contained in:
Jason W. May
2015-03-02 11:25:25 -08:00
parent 35c58c1b00
commit 0f36774246
8 changed files with 132 additions and 7 deletions

View File

@@ -13,3 +13,15 @@ Fabricator(:happy_category, from: :category) do
slug 'happy'
user
end
Fabricator(:private_category, from: :category) do
transient :group
name 'Private Category'
slug 'private'
user
after_build do |cat, transients|
cat.update!(read_restricted: true)
cat.category_groups.build(group_id: transients[:group].id, permission_type: :full)
end
end