Skip to content

Add Contributor and ContributorCreation #3216

Add Contributor and ContributorCreation

Add Contributor and ContributorCreation #3216

Triggered via push July 27, 2023 13:35
Status Failure
Total duration 8m 57s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

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>