[feat] Happening now JSON endpoint contains rendered abstract of event; Add corresponding tests

This commit is contained in:
Jimmy 2021-03-31 17:35:25 +08:00
parent 7b3d97fdbb
commit c3167a3503
3 changed files with 21 additions and 1 deletions

View file

@ -448,4 +448,14 @@ describe Event do
end
end
end
describe '#serializable_hash' do
let(:event2) { create(:event, program: conference.program, abstract: '`markdown`') }
context 'serializes event correctly' do
it 'contains rendered markdown in HTML' do
expect(event2.serializable_hash['rendered_abstract']).to include('<code>markdown</code>')
end
end
end
end