blob: 2f2cac7261ff858bdf570cbc2370540143c0326d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
require_relative 'spec_helper'
describe 'Asciidoctor::Epub3::Converter - Stem' do
it 'converts stem block to <code>' do
book, = to_epub 'stem/book.adoc'
chapter = book.item_by_href '_chapter.xhtml'
expect(chapter).not_to be_nil
expect(chapter.content).to include '<code>\sqrt(4) = 2</code>'
end
it 'converts inline stem to <code>' do
book, = to_epub 'inline-stem/book.adoc'
chapter = book.item_by_href '_chapter.xhtml'
expect(chapter).not_to be_nil
expect(chapter.content).to include '<code class="literal">y=x^2 sqrt(4)</code>'
end
end
|