We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5049926 commit 86b6cceCopy full SHA for 86b6cce
spec/factories/request_for_comment.rb
@@ -5,16 +5,14 @@
5
user factory: :external_user
6
exercise factory: :math
7
submission { association :submission, exercise:, user:, study_group: user&.study_groups&.first }
8
- file
+ file { submission.files.first }
9
sequence :question do |n|
10
"test question #{n}"
11
end
12
13
factory :rfc_with_comment, class: 'RequestForComment' do
14
after(:create) do |rfc|
15
- rfc.file = rfc.submission.files.first
16
Comment.create(file: rfc.file, user: rfc.user, row: 1, text: "comment for rfc #{rfc.question}")
17
- rfc.submission.study_group_id = rfc.user.current_study_group_id
18
19
20
0 commit comments