Skip to content

Fix Rubocop offenses #5114

Fix Rubocop offenses

Fix Rubocop offenses #5114

Triggered via push November 5, 2024 12:46
Status Failure
Total duration 4m 3s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 warnings
test: spec/lib/enmeshed/relationship_template_spec.rb#L92
Enmeshed::RelationshipTemplate#to_json when certificate requests are enabled returns the expected JSON Failure/Error: expect(template.to_json).to include('CreateAttributeRequestItem') expected "{\"maxNumberOfAllocations\":1,\"expiresAt\":\"2024-11-06T00:48:25.511Z\",\"content\":{\"metadata\":{...pted\":true,\"query\":{\"@type\":\"IdentityAttributeQuery\",\"valueType\":\"AffiliationRole\"}}]}}}" to include "CreateAttributeRequestItem"
test
Process completed with exit code 1.
test: spec/services/proforma_service/import_task_spec.rb#L56
ProformaService::ImportTask#execute when task with same uuid exists in db creates a predecessor for task Failure/Error: expect { import_proforma_task }.to change { task.reload.predecessor }.from(nil).to(be_an(Task)) NoMethodError: undefined method `predecessor' for an instance of Task
test: spec/services/proforma_service/import_task_spec.rb#L82
ProformaService::ImportTask#execute when task with same uuid exists in db when user does not own task when user is an author of task creates a predecessor for task Failure/Error: before { task.authors << user } NoMethodError: undefined method `authors' for an instance of Task
test: spec/services/proforma_service/import_task_spec.rb#L78
ProformaService::ImportTask#execute when task with same uuid exists in db when user does not own task when user is an author of task changes existing task Failure/Error: before { task.authors << user } NoMethodError: undefined method `authors' for an instance of Task
test: spec/services/proforma_service/import_task_spec.rb#L74
ProformaService::ImportTask#execute when task with same uuid exists in db when user does not own task when user is an author of task creates a new task Failure/Error: before { task.authors << user } NoMethodError: undefined method `authors' for an instance of Task