messagerie: move templates to a shared location
This commit is contained in:
parent
d77e0e938f
commit
4e2a5f0b9b
9 changed files with 13 additions and 13 deletions
|
@ -0,0 +1,22 @@
|
|||
describe 'shared/dossiers/messages/message.html.haml', type: :view do
|
||||
before { view.extend DossierHelper }
|
||||
|
||||
subject { render 'shared/dossiers/messages/message.html.haml', commentaire: commentaire, messagerie_seen_at: seen_at, current_gestionnaire: current_gestionnaire }
|
||||
|
||||
let(:dossier) { create(:dossier) }
|
||||
let(:commentaire) { create(:commentaire, dossier: dossier) }
|
||||
let(:current_gestionnaire) { create(:gestionnaire) }
|
||||
let(:seen_at) { commentaire.created_at + 1.hour }
|
||||
|
||||
context "with a seen_at after commentaire created_at" do
|
||||
let(:seen_at) { commentaire.created_at + 1.hour }
|
||||
|
||||
it { is_expected.not_to have_css(".highlighted") }
|
||||
end
|
||||
|
||||
context "with a seen_at after commentaire created_at" do
|
||||
let(:seen_at) { commentaire.created_at - 1.hour }
|
||||
|
||||
it { is_expected.to have_css(".highlighted") }
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue