add mailer for collection invitations #5846
Annotations
3 errors and 4 warnings
|
test
Process completed with exit code 1.
|
|
test:
spec/controllers/collections_controller_spec.rb#L454
CollectionsController POST #share when sending second invite after a first message was deleted by recipient behaves like success sends an invitation email
Failure/Error: expect(CollectionInvitationMailer).to have_received(:send_invitation).with(collection, recipient)
(CollectionInvitationMailer (class)).send_invitation(#<Collection id: 65, created_at: "2025-07-02 19:05:00.504566000 +0000", updated_at: "2025-07-02 19:05...6000 +0000", title: "Some Collection", description: "Some Description", visibility_level: "private">, #<User id: 750, first_name: "John_1066", last_name: "Doe", created_at: "2025-07-02 19:05:00.484014000...RED], preferred_locale: nil, password_set: [FILTERED], status_group: "unknown", openai_api_key: nil>)
expected: 1 time with arguments: (#<Collection id: 65, created_at: "2025-07-02 19:05:00.504566000 +0000", updated_at: "2025-07-02 19:05...6000 +0000", title: "Some Collection", description: "Some Description", visibility_level: "private">, #<User id: 750, first_name: "John_1066", last_name: "Doe", created_at: "2025-07-02 19:05:00.484014000...RED], preferred_locale: nil, password_set: [FILTERED], status_group: "unknown", openai_api_key: nil>)
received: 0 times
Shared Example Group: "success" called from ./spec/controllers/collections_controller_spec.rb:513
|
|
test:
spec/controllers/collections_controller_spec.rb#L454
CollectionsController POST #share behaves like success sends an invitation email
Failure/Error: expect(CollectionInvitationMailer).to have_received(:send_invitation).with(collection, recipient)
(CollectionInvitationMailer (class)).send_invitation(#<Collection id: 56, created_at: "2025-07-02 19:04:59.623819000 +0000", updated_at: "2025-07-02 19:04...9000 +0000", title: "Some Collection", description: "Some Description", visibility_level: "private">, #<User id: 716, first_name: "John_1008", last_name: "Doe", created_at: "2025-07-02 19:04:59.654947000...RED], preferred_locale: nil, password_set: [FILTERED], status_group: "unknown", openai_api_key: nil>)
expected: 1 time with arguments: (#<Collection id: 56, created_at: "2025-07-02 19:04:59.623819000 +0000", updated_at: "2025-07-02 19:04...9000 +0000", title: "Some Collection", description: "Some Description", visibility_level: "private">, #<User id: 716, first_name: "John_1008", last_name: "Doe", created_at: "2025-07-02 19:04:59.654947000...RED], preferred_locale: nil, password_set: [FILTERED], status_group: "unknown", openai_api_key: nil>)
received: 0 times
Shared Example Group: "success" called from ./spec/controllers/collections_controller_spec.rb:490
|
|
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
|
|
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#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
|