Remove notifications
This commit is contained in:
parent
6f325b6756
commit
142241dd16
25 changed files with 7 additions and 450 deletions
|
@ -4,7 +4,6 @@ RSpec.describe NotificationMailer, type: :mailer do
|
|||
shared_examples_for "create a commentaire not notified" do
|
||||
it do
|
||||
expect { subject.deliver_now }.to change { Commentaire.count }.by(1)
|
||||
expect { subject.deliver_now }.to_not change { Notification.count }
|
||||
|
||||
subject.deliver_now
|
||||
commentaire = Commentaire.last
|
||||
|
@ -19,7 +18,6 @@ RSpec.describe NotificationMailer, type: :mailer do
|
|||
describe '.send_notification' do
|
||||
let(:email_template) { instance_double('email_template', subject_for_dossier: 'subject', body_for_dossier: 'body') }
|
||||
let(:attestation) { nil }
|
||||
let(:notifications_count_before) { Notification.count }
|
||||
|
||||
subject { described_class.send_notification(dossier, email_template, attestation) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue