feat(gallery): add attachments from commentaires from experts
This commit is contained in:
parent
ad98bafeca
commit
2e2d2afecb
3 changed files with 20 additions and 2 deletions
|
@ -100,6 +100,14 @@ RSpec.describe Attachment::GalleryItemComponent, type: :component do
|
|||
expect(subject).to have_text('Messagerie (instructeur)')
|
||||
end
|
||||
end
|
||||
|
||||
context 'from an expert' do
|
||||
let(:expert) { create(:expert) }
|
||||
before { commentaire.update!(expert:) }
|
||||
it "displays the right tag" do
|
||||
expect(subject).to have_text('Messagerie (expert)')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "when attachment is from an avis" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue