[feat] Happening now JSON endpoint contains rendered abstract of event; Add corresponding tests
This commit is contained in:
parent
566b057e3c
commit
d88609b8ae
3 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue