Redefine user roles with their role in a study group
This commit is contained in:

committed by
Sebastian Serth

parent
04ed45ea73
commit
9c9f45ff77
@@ -14,6 +14,7 @@ FactoryBot.define do
|
||||
after(:create) do |rfc|
|
||||
rfc.file = rfc.submission.files.first
|
||||
Comment.create(file: rfc.file, user: rfc.user, row: 1, text: "comment for rfc #{rfc.question}")
|
||||
rfc.submission.study_group_id = rfc.user.current_study_group_id
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user