fix(spec): scope out time as reference for time comparission, hope not a matter of precision

This commit is contained in:
Martin 2021-11-15 14:55:35 +01:00
parent f1293814a3
commit a74ca8ad39
3 changed files with 13 additions and 4 deletions

View file

@ -11,7 +11,7 @@
.rich-text= pretty_commentaire(commentaire)
.message-extras.flex.justify-start
- if commentaire.sent_by?(connected_user) && commentaire.sent_by_instructeur? && commentaire.deleted_at.nil?
- if commentaire.soft_deletable?(connected_user)
= button_to instructeur_commentaire_path(commentaire.dossier.procedure, commentaire.dossier, commentaire), method: :delete, class: 'button danger', data: { confirm: t('views.shared.commentaires.destroy.confirm') } do
%span.icon.delete
= t('views.shared.commentaires.destroy.button')