Add Contributor and ContributorCreation #3216
Annotations
10 errors
test:
spec/models/exercise_spec.rb#L13
Exercise validates the number of main files
Failure/Error: exercise.files += create_pair(:file)
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/models/exercise_spec.rb#L98
Exercise#average_score with submissions returns the average of all users' maximum scores
Failure/Error: create_list(:submission, 10, cause: 'submit', exercise:, score: Forgery(:basic).number, user: users.sample)
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/models/exercise_spec.rb#L79
Exercise#average_percentage with submissions returns the average score expressed as a percentage
Failure/Error: create_list(:submission, 10, cause: 'submit', exercise:, score: Forgery(:basic).number, user: users.sample)
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L5
SubmissionsController GET #test assigns @submission
Failure/Error: let(:submission) { create(:submission) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L5
SubmissionsController GET #test assigns @file
Failure/Error: let(:submission) { create(:submission) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L53
SubmissionsController GET #test responds with status 204
Failure/Error: let(:submission) { create(:submission) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L5
SubmissionsController GET #run when no errors occur during execution assigns @submission
Failure/Error: let(:submission) { create(:submission) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L53
SubmissionsController GET #run when no errors occur during execution responds with status 204
Failure/Error: let(:submission) { create(:submission) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L5
SubmissionsController GET #run when no errors occur during execution assigns @file
Failure/Error: let(:submission) { create(:submission) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|
test:
spec/support/controllers.rb#L5
SubmissionsController GET #render_file with a valid filename with a binary file assigns @submission
Failure/Error: let(:submission) { create(:submission, exercise: create(:audio_video)) }
NoMethodError:
undefined method `user=' for #<Submission id: nil, exercise_id: nil, score: nil, contributor_id: nil, created_at: nil, updated_at: nil, cause: nil, contributor_type: nil, study_group_id: nil>
|